Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 687784f4ef7e1565d9808294b0a98b0b3a3a8558
Ticket: 0aea0e0dcfee769a5d4bd8a390d6ac0d58525aa7
http::geturl -headers syntax and compressed content
User & Date: anonymous on 2016-03-29 09:31:58
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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...
    
  5. foundin changed to: "2.8.5"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "29. http Package"
  14. title changed to:
    http::geturl -headers syntax and compressed content
    
  15. type changed to: "Bug"