Difference between revisions of "THttpCli"
Jump to navigation
Jump to search
| Line 57: | Line 57: | ||
| valign="top" width="150" | [[THttpCli.MultiThreaded | MultiThreaded]] |||| To tell the component it runs within a thread. | | valign="top" width="150" | [[THttpCli.MultiThreaded | MultiThreaded]] |||| To tell the component it runs within a thread. | ||
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.NoCache | NoCache]] |||| | + | | valign="top" width="150" | [[THttpCli.NoCache | NoCache]] |||| Tell the server to not cache the request. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.Options | Options]] |||| | + | | valign="top" width="150" | [[THttpCli.Options | Options]] |||| Options. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.Protocol | Protocol]] |||| | + | | valign="top" width="150" | [[THttpCli.Protocol | Protocol]] |||| Protocol extracted from the URL. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.Proxy | Proxy]] |||| | + | | valign="top" width="150" | [[THttpCli.Proxy | Proxy]] |||| Proxy to traverse to before connecting. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.ProxyConnection | ProxyConnection]] |||| | + | | valign="top" width="150" | [[THttpCli.ProxyConnection | ProxyConnection]] |||| Type of proxy connection. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.ProxyPort | ProxyPort]] |||| | + | | valign="top" width="150" | [[THttpCli.ProxyPort | ProxyPort]] |||| Port to be used to connect to proxy. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.RcvdCount | RcvdCount]] |||| | + | | valign="top" width="150" | [[THttpCli.RcvdCount | RcvdCount]] |||| Bytes received. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.RcvdHeader | RcvdHeader]] |||| | + | | valign="top" width="150" | [[THttpCli.RcvdHeader | RcvdHeader]] |||| Received header. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.RcvdStream | RcvdStream]] |||| | + | | valign="top" width="150" | [[THttpCli.RcvdStream | RcvdStream]] |||| Stream to write received document. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.ReasonPhrase | ReasonPhrase]] |||| | + | | valign="top" width="150" | [[THttpCli.ReasonPhrase | ReasonPhrase]] |||| Status returned by server. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.Reference | Reference]] |||| | + | | valign="top" width="150" | [[THttpCli.Reference | Reference]] |||| To send the referer to the server. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.RequestVer | RequestVer]] |||| | + | | valign="top" width="150" | [[THttpCli.RequestVer | RequestVer]] |||| HTTP version to be used in the request. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.Sender | Sender]] |||| | + | | valign="top" width="150" | [[THttpCli.Sender | Sender]] |||| Sender to be sent to server. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.SendStream | SendStream]] |||| | + | | valign="top" width="150" | [[THttpCli.SendStream | SendStream]] |||| Stream to be posted. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.SentCount | SentCount]] |||| | + | | valign="top" width="150" | [[THttpCli.SentCount | SentCount]] |||| Bytes sent. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.SocksAuthentication | SocksAuthentication]] |||| | + | | valign="top" width="150" | [[THttpCli.SocksAuthentication | SocksAuthentication]] |||| Socks server authentication type. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.SocksLevel | SocksLevel]] |||| | + | | valign="top" width="150" | [[THttpCli.SocksLevel | SocksLevel]] |||| Sockers server protocol level. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.SocksPassword | SocksPassword]] |||| | + | | valign="top" width="150" | [[THttpCli.SocksPassword | SocksPassword]] |||| Socks server password. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.SocksPort | SocksPort]] |||| | + | | valign="top" width="150" | [[THttpCli.SocksPort | SocksPort]] |||| Socks server port. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.SocksServer | SocksServer]] |||| | + | | valign="top" width="150" | [[THttpCli.SocksServer | SocksServer]] |||| Socks server hostname or IP. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.SocksUsercode | SocksUsercode]] |||| | + | | valign="top" width="150" | [[THttpCli.SocksUsercode | SocksUsercode]] |||| Socks server usercode. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.State | State]] |||| | + | | valign="top" width="150" | [[THttpCli.State | State]] |||| Component state. |
|- | |- | ||
| − | | valign="top" width="150" | [[THttpCli.StatusCode | StatusCode]] |||| | + | | valign="top" width="150" | [[THttpCli.StatusCode | StatusCode]] |||| Server status code. |
|- | |- | ||
| valign="top" width="150" | [[THttpCli.TransferEncoding | TransferEncoding]] |||| | | valign="top" width="150" | [[THttpCli.TransferEncoding | TransferEncoding]] |||| | ||
Revision as of 13:02, 2 March 2006
Main page -> ICS components reference -> THttpCli
Contents
Overview
- unit HttpProt.pas
- inheritance THttpCli - TComponent
THttpCli component is implementing the client side HTTP protocol described in RFC 1945 and RFC 2068. HTTP protocol is the standard protocol for browsing the World Wide Web.
Properties
| Accept | Mime types accepted in the reply. | |
| AcceptLanguage | Languages accepted in the reply. | |
| AcceptRanges | Ranges accepted. | |
| Agent | User agent sent to server. | |
| AuthorizationRequest | ||
| Connection | Connection type for keep-alive. | |
| ContentLength | Received document length. | |
| ContentRangeBegin | Start of requested range. | |
| ContentRangeEnd | End of requested range. | |
| ContentType | Received document mime type. | |
| ContentTypePost | Sent document mime type. | |
| Cookie | Cookies to be sent. | |
| CtrlSocket | Underlaying The underlying instance of TWSocket handles the connection and raw data exchange. | |
| DnsResult | Result of DNS request. | |
| DocName | Received document name. | |
| FollowRelocation | Tell the component o follow or not the relocations. | |
| Handle | Hidden window handle. | |
| Hostname | Hostname to which the URL point. | |
| LastResponse | Last response from server. | |
| LocalAddr | Local address to which underlaying socket is bound. | |
| Location | Where the relocation will take place. | |
| ModifiedSince | Requested modification datetime. | |
| MultiThreaded | To tell the component it runs within a thread. | |
| NoCache | Tell the server to not cache the request. | |
| Options | Options. | |
| Protocol | Protocol extracted from the URL. | |
| Proxy | Proxy to traverse to before connecting. | |
| ProxyConnection | Type of proxy connection. | |
| ProxyPort | Port to be used to connect to proxy. | |
| RcvdCount | Bytes received. | |
| RcvdHeader | Received header. | |
| RcvdStream | Stream to write received document. | |
| ReasonPhrase | Status returned by server. | |
| Reference | To send the referer to the server. | |
| RequestVer | HTTP version to be used in the request. | |
| Sender | Sender to be sent to server. | |
| SendStream | Stream to be posted. | |
| SentCount | Bytes sent. | |
| SocksAuthentication | Socks server authentication type. | |
| SocksLevel | Sockers server protocol level. | |
| SocksPassword | Socks server password. | |
| SocksPort | Socks server port. | |
| SocksServer | Socks server hostname or IP. | |
| SocksUsercode | Socks server usercode. | |
| State | Component state. | |
| StatusCode | Server status code. | |
| TransferEncoding | ||
| URL | Complete URL to act on |
Methods
| Abort | align test | |
| Close | ||
| CloseAsync | ||
| Create | ||
| Destroy | ||
| Get | ||
| GetASync | ||
| Head | ||
| HeadASync | ||
| Post | ||
| PostASync | ||
| Put | ||
| PutASync | align test |
Events
How to
How to implement a timeout for THttpCli in my application?
How to implement a progress for THttpCli in my application?
How to implement a download size limitation for THttpCli in my application?