- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
procedure http_set_header(cp: HTTPConnection; const name, value: string);
Arguments:
-
cp |
Connection handle |
name |
Name part of HTTP header, e.g. 'Host' |
header |
Value part of HTTP header, e.g. 'www.freepascal.org' |
Description:
-
This function sets custom request header. If such header is already set its value will be replaced with new one. Call this function before sending the request.
Usage:
-
http_set_header(cp, 'Accept-Charset', 'koi8-r');
See also:
-
http_request, http_put_header.
|