Difference between revisions of "THttpCli"

From Overbyte
Jump to navigation Jump to search
Line 11: Line 11:
  
 
{|
 
{|
| valign="top" width="150" | [[THttpCli.Accept | Accept]] |||| Short description
+
| valign="top" width="150" | [[THttpCli.Accept | Accept]] |||| Mime types accepted in the reply.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.AcceptLanguage | AcceptLanguage]] ||||
+
| valign="top" width="150" | [[THttpCli.AcceptLanguage | AcceptLanguage]] |||| Languages accepted in the reply.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.AcceptRanges | AcceptRanges]] ||||
+
| valign="top" width="150" | [[THttpCli.AcceptRanges | AcceptRanges]] |||| Ranges accepted.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.Agent | Agent]] ||||
+
| valign="top" width="150" | [[THttpCli.Agent | Agent]] |||| User agent sent to server.
 
|-
 
|-
 
| valign="top" width="150" | [[THttpCli.AuthorizationRequest | AuthorizationRequest]] ||||
 
| valign="top" width="150" | [[THttpCli.AuthorizationRequest | AuthorizationRequest]] ||||
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.Connection | Connection]] ||||
+
| valign="top" width="150" | [[THttpCli.Connection | Connection]] |||| Connection type for keep-alive.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.ContentLength | ContentLength]] ||||
+
| valign="top" width="150" | [[THttpCli.ContentLength | ContentLength]] |||| Received document length.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.ContentRangeBegin | ContentRangeBegin]] ||||
+
| valign="top" width="150" | [[THttpCli.ContentRangeBegin | ContentRangeBegin]] |||| Start of requested range.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.ContentRangeEnd | ContentRangeEnd]] ||||
+
| valign="top" width="150" | [[THttpCli.ContentRangeEnd | ContentRangeEnd]] |||| End of requested range.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.ContentType | ContentType]] ||||
+
| valign="top" width="150" | [[THttpCli.ContentType | ContentType]] |||| Received document mime type.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.ContentTypePost | ContentTypePost]] ||||
+
| valign="top" width="150" | [[THttpCli.ContentTypePost | ContentTypePost]] |||| Sent document mime type.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.Cookie | Cookie]] ||||
+
| valign="top" width="150" | [[THttpCli.Cookie | Cookie]] |||| Cookies to be sent.
 
|-
 
|-
| valign="top" width="150" | [[TWSocket | CtrlSocket]] |||| {{CtrlSocket}}
+
| valign="top" width="150" | [[TWSocket | CtrlSocket]] |||| Underlaying {{CtrlSocket}}
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.DnsResult | DnsResult]] ||||
+
| valign="top" width="150" | [[THttpCli.DnsResult | DnsResult]] |||| Result of DNS request.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.DocName | DocName]] ||||
+
| valign="top" width="150" | [[THttpCli.DocName | DocName]] |||| Received document name.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.FollowRelocation | FollowRelocation]] ||||
+
| valign="top" width="150" | [[THttpCli.FollowRelocation | FollowRelocation]] |||| Tell the component o follow or not the relocations.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.Handle | Handle]] ||||
+
| valign="top" width="150" | [[THttpCli.Handle | Handle]] |||| Hidden window handle.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.Hostname | Hostname]] ||||
+
| valign="top" width="150" | [[THttpCli.Hostname | Hostname]] |||| Hostname to which the URL point.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.LastResponse | LastResponse]] ||||
+
| valign="top" width="150" | [[THttpCli.LastResponse | LastResponse]] |||| Last response from server.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.LocalAddr | LocalAddr]] ||||
+
| valign="top" width="150" | [[THttpCli.LocalAddr | LocalAddr]] |||| Local address to which underlaying socket is bound.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.Location | Location]] ||||
+
| valign="top" width="150" | [[THttpCli.Location | Location]] |||| Where the relocation will take place.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.ModifiedSince | ModifiedSince]] ||||
+
| valign="top" width="150" | [[THttpCli.ModifiedSince | ModifiedSince]] |||| Requested modification datetime.
 
|-
 
|-
| valign="top" width="150" | [[THttpCli.MultiThreaded | MultiThreaded]] ||||
+
| 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]] ||||

Revision as of 12:56, 2 March 2006

Main page -> ICS components reference -> THttpCli

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
Options
Protocol
Proxy
ProxyConnection
ProxyPort
RcvdCount
RcvdHeader
RcvdStream
ReasonPhrase
Reference
RequestVer
Sender
SendStream
SentCount
SocksAuthentication
SocksLevel
SocksPassword
SocksPort
SocksServer
SocksUsercode
State
StatusCode
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

OnBeforeHeaderSend align test
OnCommand
OnCookie
OnDataPush
OnDataPush2
OnDocBegin
OnDocData
OnDocEnd
OnHeaderBegin
OnHeaderData
OnHeaderEnd
OnLocationChange
OnRequestDone
OnRequestHeaderBegin
OnRequestHeaderEnd
OnSendBegin
OnSendData
OnSendEnd
OnSessionClosed
OnSessionConnected
OnSocketError
OnSocksAuthState
OnSocksConnected
OnSocksError
OnStateChange
OnTrace

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?



ICS Components Reference