-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: Several 100-continue #22128
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
CC @tombergan |
Thanks for the report. As best I can tell, the server and the Go client library are both wrong. The server should not send multiple 100-continues and Go should ignore the extra 100-continues. https://tools.ietf.org/html/rfc7231#section-6.2
The second 100-continue response is an unexpected 1xx response that we should ignore. This is definitely a bug we should fix, however, I'm going to close this issue because it's a dup of #17739, which is the exact same problem (Go does not ignore unexpected 1xx responses). |
I took your code and created a complete example I get your expected output. |
@fraenkel That doesn't repro the problem. The server is Go, which should send a single 100-continue. To repro, the server would need to send multiple 100-continue messages. Here's a repro: https://play.golang.org/p/Czf4GKg2qt [edit: I had a typo in the prior link] |
Right. I was saying I couldn't do it with go if I wasn't clear.
…On Oct 4, 2017 6:31 PM, "tombergan" ***@***.***> wrote:
@fraenkel <https://github.com/fraenkel> That doesn't repro the problem.
The server is Go, which should send a single 100-continue. To repro, the
server would need to send multiple 100-continue messages. Here's a repro:
https://play.golang.org/p/jWKbT4MhQB
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22128 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA4uYaldmFMhQ3IBIgoAjrUdBfkJ7qIkks5spAdBgaJpZM4PtcxF>
.
|
Hi!
I send request to some server and i have a trouble with several 100-continue responses.
What version of Go are you using (
go version
)?go version go1.9 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
libcurl example:
In example you see two HTTP/1.1 100 Continue
GO 1.9 example:
Result of this example:
What did you expect to see?
What did you see instead?
I found problem in src/net/http/transport.go:1698
What do you think about:
I know endless cycle it's not good idea =)
UPD: The similar problem https://stackoverflow.com/questions/22818059/several-100-continue-received-from-the-server . Request to an IIS 7.5 server.
The text was updated successfully, but these errors were encountered: