#Sending HTTP Request
1 messages · Page 1 of 1 (latest)
Do you need any help or just showing what you got?
The main issue is that, somehow the Content-Type of the request is being set to application/octet-stream (I confirmed by running a proxy on port 9000)
I need help, but thought it would help if I show the request body I'm sending
and what the proxy is seeing
the Content-Type: application/json changed to application/octet-stream
Probably httpc does some magic. I haven't used it, can't say for sure. I'd try with another http client or dive into the source code of httpc to find out what's going on
try lower case "content-type"
okay, lemme try
okay
oh wow 
can't belive that fixed it
thanks y'all
Funny
The issue was fixed by changing the http headers to lowercase
http standards are intriguing.
or the implementations.
I believe standard says lowercase, but many (not all!) systems work with CamelCase or at least accept it.
oh wow
that's really interesting, does that mean that other frameworks that allow uppercase are basically doing their own thing/ not fully implementing the spec?
ah, found it. http 1, case insensitive, http 2 lower case
Interesting, it basically means that no one abides by the one true standard and many choose to, probably, win in performance avoiding additional to_lower_case