Home > Back-end >  Consult, ICS in the component HttpCli how to add custom Header?
Consult, ICS in the component HttpCli how to add custom Header?

Time:10-15

INDY components can use IdHttp. Request. CustomHeader. The add ();
And the ICS in the component HttpCli without, search engine search, not a relevant answer
ICS related help really have so little? And he's DEMO is so simple!

CodePudding user response:

In onBeforeHeaderSend events can modify the HEADER, but too much trouble!
Try to modify the ICS source, add a ExracHeaders attribute, use SendLine to operation, but after the change cannot compile
SSLHttpcli will go wrong, don't ICS source added protection? I am dizzy...

CodePudding user response:

LZ this problem done excuse me?

CodePudding user response:

Suddenly, convert IDHTTP, ICS use up too much trouble!!!!!

CodePudding user response:

Don't directly to the source code, write a subclass directly, add ExtraHeader, and override the SendRequest, in the writing the header. The add ""