Artifacts Associated With Ticket 0aea0e0dcfee769a
Ticket change [687784f4ef] (rid 146040) by anonymous on 2016-03-29 09:31:58:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Most servers today support Content Encoding, and usually send compressed content (gzip, zlib, the RFC is a bit weird in its clarification) Using the http package, the latest I've used is 2.8.5, the content returned is garbled since the server is sending compressed content, either of a bug, or the package does not how to deal with compressed content?? As a possible workaround, requesting uncompressed content with the Accept-Encoding identity flag fails, content still being garbled tcl http::geturl documentation, and RFC 7231 state that the -headers syntax include a colon ":" e.g. "Pragma: no-cache", or in my case "Accept-Encoding: identity" so, http::geturl $url -binary 1 -headers "Accept-Encoding: identity" fails while removal of the colon http::geturl $url -binary 1 -headers "Accept-Encoding identity" works...
- foundin initialized to: "2.8.5"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "29. http Package"
- title initialized to:
http::geturl -headers syntax and compressed content
- type initialized to: "Bug"
Ticket change [e2897d5e80] (rid 146041) by jan.nijtmans on 2016-03-29 09:58:52:
- closedate changed to: "2457476.91588856"
- closer changed to: "jan.nijtmans"
- icomment: "Dup of [b9d0434667], which is already fixed."
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
Ticket change [e76a4a6f68] (rid 146042) by jan.nijtmans on 2016-03-29 10:06:04:
- closedate changed to: "2457476.92089108"
- icomment:
B.T.W.: The documentation states that a keyvaluelist of "Pragma no-cache" will result in the http header "Pragma: no-cache". I don't see anything wrong with that.
- login: "jan.nijtmans"
- mimetype: "text/plain"