2.4. TfrxHTTPClient
TfrxHTTPClient class inherited from TComponet Properties: Active: Boolean - executes a query if "True" is set; Host: String - host name or host IP address; "127.0.0.1" by default; Port: Integer - host port, "80" by default; ProxyHost: String - HTTP-proxy name or proxy IP address; ProxyPort: Integer - proxy port; RetryCount: Integer - retry count, default - 3; RetryTimeOut: Integer - delay between retry in seconds, default - 5; TimeOut: Integer - idle time in seconds, default - 30; ClientFields: TfrxHTTPClientFields - fields the request's header; TfrxHTTPClientFields is described below; ServerFields: TfrxHTTPServerFields - parsed answer header; TfrxHTTPServerFields is described below; MIC: Boolean - checking the message's integrity checksum, "True" by default; Header: TStrings - raw request header; it is filled in automatically from ClientFields; Answer: TStrings - raw answer header, parsed fields will be stored in ServerFields; Stream: TMemoryStream - data received from server; Breaked: Boolean - sign of emergency disconnection; Errors: TStrings - errors list. Methods: procedure Connect - connect to remote server and get the file, after disconnect; procedure Disconnect - disconnect from server; procedure Open -same as "Connect"; procedure Close - same as "Disconnect". TfrxHTTPClientFields class inherited from TPersistent Properties: AcceptEncoding: String - accepted compression formats, default - 'gzip'; FileName: String - requested filename; Host: String - address or client's hostname; fills automatically if empty; HTTPVer: String - http protocol version, default - 'HTTP/1.1'; Login: String - user name for authentication; Password: String - password for authentication; QueryType: TfrxHTTPQueryType - query type, qtGet - GET query, qtPost - POST query; "qtGet" by default; Referer: String - referencing document name; blank by default; UserAgent: String - client program name, default - 'FastReport/3.0'. TfrxHTTPServerFields class inherited from TPersistent Properties: AnswerCode: Integer - server response code; ContentEncoding: String - received data compression format; ContentMD5: String - MD5 checksum; ContentLength: Integer - received data length; Location: String - actual location of the document. |
< previous page | main page | next page > |