SyntaxFix
Write A Post
Hire A Developer
Questions
IMHO it is considered as malformed header data.
You actually want to send those name value pairs as the request content (this is the way POST works) and not as headers.
The second way is true.