Atozed Forums
TIWIndyHTTPClient.CustomHeaders value not included in request (v15.4.x) - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: TIWIndyHTTPClient.CustomHeaders value not included in request (v15.4.x) (/thread-3621.html)



TIWIndyHTTPClient.CustomHeaders value not included in request (v15.4.x) - brsoft - 11-10-2023

Hi!

IWIndyHTTPClient does not insert the CustomHeaders value into the request as of Intraweb 15.4.x.
(This worked fine in version 15.3.12.)

Example: the 'Signature' parameter was not included in the sent request (v.15.4.2):
xHTTP := TIWIndyHTTPClient.Create;
xHTTP.CustomHeaders.Add( 'Signature:abcdef123456' );
xHTTP.Post( address, req, contenttype);

But it works fine with this code:
xHTTP:=TidHTTP.Create(nil);
xHTTP.Request.ContentType:=contenttype;
xHTTP.Request.CustomHeaders.Add( 'Signature:abcdef123456' );
response:=iHTTP.Post( address, req );

Will there be a fix for TIWIndyHTTPClient?

Best regards:
Robert