Skip to content

"400 Bad Request The HTTP request did not have a Host header", but I added it manually #1895

Answered by seanmonstar
GTP95 asked this question in Q&A
Discussion options

You must be logged in to vote

reqwest add the host header automatically, too. You can see it in the verbose output.

It could be that the server (wrongly) depends on a specific capitalization of the name. If so, you can enable ClientBuilder::http1_title_case_headers() option.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GTP95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants