-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
HTTP/1.1 400 Bad Request: invalid header name #7705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you give us more details on how to reproduce this? |
Can you show us the headers for the working version? How about the code that
sets up the easy handle?
|
|
On debian -> working one -> header:
It seems there is a problem or at least a strange behaviour regarding the User-Agent in the proxy connection part (but not in the first connection). Let me give you some more details:
(I will update the header up of the arch proxy connection) |
Reproduced! |
It should not refer to the uagent string that is allocated and created for the end server http request, as that pointer may be cleared on subsequent CONNECT requests. Added test case 1184 to verify. Reported-by: T200proX7 on github Fixes #7705
Great - nice to hear. Thank you. Lets see when Arch receives the update. |
Im using
I use curl in a golang application for a long time. The application is working on another computer running debian. I have tried to use it on the current computer (running Arch) and always receive the http error response message
HTTP/1.1 400 Bad Request: invalid header name
I rechecked the application at the debian computer and even the command line itself. It is working fine with
curl 7.52.1
The
-v
output of curl on the arch computer (with the obviously broken curl version) is:I guess the problem is because of (nil) in the header name Proxy-Connection.
The strange thing is, that i think a week ago? it was working fine on the arch computer. I cant remember so clearly right now.
The text was updated successfully, but these errors were encountered: