Hello all :)

I'm struggling to add two headers to an http client request, but cannot find a proper way to do it.

The headers are Authorization and Content-Type.

The first try is with http_client module, beside undocumented, is possible to add multiple headers separating them with "\r\n". What I see is the correct Authorization header, and two Content-Type headers, one with my content type the other with x-www-form-urlencoded, which no one sets ?

Second try is with http_async_client which supports multiple headers, but since I'm calling it from an xhttp event route, there's no transaction and request cannot be suspended, so I cannot get results before sending out xhttp response...

Any hint?

br, 
Mat