SYNAPSE - Synchronous TCP/IP Library for Delphi
Other related information can be found at http://www.mlp.cz/space/gebauerl/synapse/
Class: THTTPSend
- Properties:
- Timeout:integer
Define timeout in second for all HTTP operations. default value is 300 seconds.
- SMTPhost:String
Address of HTTP server (IP address or domain name) where you want to connect.
- HTTPPort:integer
Port number for HTTP connection. Default value is 80.
- Methods:
- Function Request(Query,Response:TStrings):Boolean
Connects to a HTTPHost and HTTPPort and send there Query. After it receive Response and close connection. If all OK, result is true, else result is false.
- Not class (but cohere) functions:
- Function get(Host,URI:string;Response:TStrings):Boolean
This is useful function and example of use THTTPSend object. It implement basic GET method of HTTP protocol. This function send GET metod for URI document to Host HTTP server. Returned document is in Response stringlist. If all OK, result is true, else result is false.