http icon indicating copy to clipboard operation
http copied to clipboard

No Host header added.

Open yehezkel opened this issue 5 years ago • 2 comments

When creating a regular http request and manually using client.send not Header Host is added by default which makes the request fail (normally under 400) against standard web servers like nginx or apache.

Maybe such common header should be added by default? , the same way Content-Type is been added when request.body is set.

yehezkel avatar Feb 12 '20 21:02 yehezkel

Hello, I see that this issue is still open.

I think that the Host header should be added by default when http request is generated: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host

Any news on that? Thanks!

jpgpuyo avatar Dec 10 '20 01:12 jpgpuyo

Hello, issue should be closed. Header host is automatically added in the method HttpClient.openUrl which is used under the hood in IOClient class.

Zavioer avatar Nov 21 '23 21:11 Zavioer