From Overbyte
Revision as of 18:42, 19 February 2006 by Wilfried (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Main page -> ICS components reference -> THttpCli -> OnBeforeHeaderSend


procedure (Sender: TObject; const Method: String; Headers: TStrings) of object;

  • Sender : the client which fired the event
  • Method : the method of the request (HEAD, GET, POST, PUT)
  • Headers : the headers which are about to be sent to the server


This event will fire before THttpCli component sends the request headers to the server. You can modify the headers by manipulating the Headers parameter.

You can add your headers to the string list Headers if you need to.

Headers[0] is containing the verb, the URL and the protocol version:

GET some-url-here HTTP/1.0

It is not an orthodox method but you can also implement here new type of HTTP verbs (eg: DELETE, TRACE ... etc.) which are not currently exposed directly by the component by rewriting Headers[0].


nothing yet

Best practices

nothing yet