Overview
| Artifact ID: | 687784f4ef7e1565d9808294b0a98b0b3a3a8558 |
|---|---|
| Ticket: | 0aea0e0dcfee769a5d4bd8a390d6ac0d58525aa7
http::geturl -headers syntax and compressed content |
| User & Date: | anonymous on 2016-03-29 09:31:58 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "2.8.5"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "29. http Package"
- title changed to:
http::geturl -headers syntax and compressed content
- type changed to: "Bug"