Search code examples
delphidelphi-7

Delphi Overbyte ICS THttpCli- How to set custom request header?


Is it possible to set a custom header with ICS THttpCli POST request?
I'm using ICS-V5 Distribution (Sep 12, 2009)

All I can see is a RcvdHeader property but there is no SendHeader.

P.S: I know about Indy. this is a question about ICS which is used in my current framework.


Solution

  • in the OnBeforeHeaderSend event you can modify the headers passed as the Headers string list parameter.

    Thanks @TLama :)