|
2016-03-29
| ||
| 10:06 | • Ticket [0aea0e0dcf] http::geturl -headers syntax and compressed content stat... artifact: e76a4a6f68 user: jan.nijtmans | |
| 09:58 | • Closed ticket [0aea0e0dcf]. artifact: e2897d5e80 user: jan.nijtmans | |
| 09:31 | • New ticket [0aea0e0dcf]. artifact: 687784f4ef user: anonymous | |
http::geturl -headers syntax and compressed content
Closed / Duplicate0aea0e0dcfee769a5d4bd8a390d6ac0d58525aa7Created 11 years agoUpdated 11 years ago
Descriptionplain2016-03-29 09:31:58
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...
jan.nijtmanswiki2016-03-29 09:58:52
Dup of [b9d0434667], which is already fixed.
jan.nijtmansplain2016-03-29 10:06:04
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.
Log in (anonymous is fine) to add a comment.