Menu

#326 Add a -compress config option for ::http::config

open
None
5
2011-01-21
2011-01-21
No

Right now the http packages requests compressed results if the website offers it and the zlib package has been loaded (or Tcl 8.6 is being used).

We are tracking a problem where some compressed data is getting corrupted. We want to use the http package to fetch both compressed and uncompressed versions of the page. Currently with the http package it's all or nothing.

I can work around the problem by specifying a -channel or -handler option, based on reading the source, but an explicit way to control the behavior would be preferable.

Discussion

  • Andreas Kupries

    Andreas Kupries - 2011-01-21

    This belongs to the Tcl core, pretty much. that is which provides 'http'.
    Still, assigned to Pat, as he is the guy handling 'http'.

     
  • Andreas Kupries

    Andreas Kupries - 2011-01-21
    • assigned_to: nobody --> patthoyts
     
  • Karl Lehenbauer

    Karl Lehenbauer - 2011-01-24

    patch to add -compress option to http library

     
  • Karl Lehenbauer

    Karl Lehenbauer - 2011-01-24

    I've uploaded a file that contains a patch to provide the -compress switch for the tcl 8.5 version.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.