Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8dc0563eaf333a270d61c7d8670c0495cc57cb704427dc0e5ed6c440797f422b
Ticket: fb642c54bc58b31daafba9ae495ded4b0417d9bc
Incorrect download of compressed encoded data
User & Date: sebres on 2018-03-26 16:40:47
Changes

  1. closer changed to: "nobody"
  2. icomment:
    Reopened because of <a href="https://groups.google.com/d/msg/comp.lang.tcl/7mNIrCZH2Ks/dbOyZcYABQAJ">https://groups.google.com/d/msg/comp.lang.tcl/7mNIrCZH2Ks/dbOyZcYABQAJ</a>:
    <pre>
    > ```diff
    > - set out [open $file w]
    > + set out [open $file wb]
    > ```
    
    confirmed, download using: -headers {Accept-Encoding identity} brings
    with "set out [open $file wb]" the same result as wget.
    
    But without the geturl header {Accept-Encoding identity} the download
    file size differs by ca. 70kB.
    ....
    "HTTP file copy size is 342957, wget filesize is 416135"
    
    > Please reopen if I'm wrong.
    
    Don't know if this can be seen as expected behavior.
    The man page also explains the option -binary and even setting this to
    true and using filemode binary does not download the complete file.
    
    From my point of view it is really hard to find out why geturl does
    behave as it does.
    Maybe improving the man pages could also bring more clear picture or
    adding the gzip encoding to the manpage example.
    
    BTW: Nevertheless my problem is solved, many thanks to clt :-) 
    </pre>
    
    Looks like some response headers seem to still not correctly impact, if "Accept-Encoding" is not "identity" (resp. "chunked" in my case).<br/>
    Currently, I've no time to dig deeper.
    
  3. login: "sebres"
  4. mimetype: "text/x-fossil-wiki"
  5. status changed to: "Pending"
  6. username: "[email protected]"