11-10-2023, 09:13 AM
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
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