Overview
| Artifact ID: | f9787af6ab3b100f0ac6de4977c7332324ae0200 |
|---|---|
| Ticket: | 1928131fffffffffffffffffffffffffffffffff
chunked headers leak in data when -handler used |
| User & Date: | arjenmarkus on 2009-11-13 16:57:01 |
Changes
- icomment:
I had a problem with http::geturl that seems related to chunked transfers: I ran into this issue with http and the -channel option, version 2.7.4, running Windows XP. I wanted to retrieve zip files and did so with code like: set outfile [open myzipfile.zip w] fconfigure $outfile -translation binary ::http::geturl $URL -channel $outfile close $outfile This led to corrupted zip files that could not be read by the zip::vfs package. The corruption was limited: - A line with a number (609) appeared at the start (ended with carriage-return line-feed) - The actual contents of the zip-file I wanted - A line with a number (0) and two newlines Using code like: set token [::http::geturl $URL] set outfile [open myzipfile.zip w] fconfigure $outfile -translation binary puts -nonewline $outfile [::http::data $token] close $outfile gave me the zip files I wanted. According to Pat Thoyts this has to do with chunked data transfers.
- login: "arjenmarkus"
- mimetype: "text/plain"
- username: "arjenmarkus"