Overview
| Artifact ID: | e80865243f3ae44e424010f1659e7dc3d53964a3 |
|---|---|
| Ticket: | 2a94652ee10cae20c0b54cf9fd6516eb01daadd5
http package reply "100 continue" code broken |
| User & Date: | oehhar on 2017-08-30 14:23:17 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
http 2.8.11 package does not correctly ignore "100 Continue" replies. The relevant code is broken. What happens? [https://tools.ietf.org/html/rfc7231#section-6.2.1] The first line of a web server reply contains the status. If this is: <verbatim> HTTP/1.1 100 Contine </verbatim> the real header will follow as a following line. The current code correctly ignores the continue status, but does not expect a following status line. The insertion of a set to state "connecting" fixes that (around line 1034): <verbatim> proc http::Event {sock token} { ... # We ignore HTTP/1.1 100 Continue returns. RFC2616 sec 8.2.3 if {$state(http) == "" || ([regexp {^\S+\s(\d+)} $state(http) {} x] && $x == 100)} { set state(state) "connecting" return } </verbatim> At least, inserting this line cured the communication for me with TCLWS and a .net server. - foundin changed to: "8.6.7"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "29. http Package"
- title changed to: "http package reply "100 continue" code broken"
- type changed to: "Bug"