I try create a wrapper for HTTP calls as a Dynamic Library and I have come this far I am able to add Header and PostData, however, I need to add some special headers which look like this:
NetHTTPClient1.CustomHeaders['HeaderName1[HeaderName2]'] := 'HeaderValue';
I use this to add "regular" headers
NetHTTPClient1.CustomHeaders['HeaderName1'] := 'HeaderValue';
I use Delphi 10.4 CE on Windows 10 Pro x64...
Any thoughts / ideas / solutions are really appreciated .....
HeaderName1[HeaderName2]
is not a legal HTTP header name. HTTP header names are defined astoken
s, and the characters[
and]
are not allowed intoken
s per RFCs 2616 and 7230. Why do you need this, exactly?