<i>chunked headers leak in data when -handler used</i> status still Open with 4 other changes
by
.
D 2009-11-13T16:57:01
J icomment I\s\shad\sa\sproblem\swith\shttp::geturl\sthat\sseems\srelated\sto\schunked\stransfers:\n\nI\sran\sinto\sthis\sissue\swith\shttp\sand\sthe\s-channel\soption,\sversion\s2.7.4,\s\nrunning\sWindows\sXP.\sI\swanted\sto\sretrieve\szip\sfiles\sand\sdid\sso\swith\scode\slike:\s\n\nset\soutfile\s[open\smyzipfile.zip\sw]\s\nfconfigure\s$outfile\s-translation\sbinary\s\n::http::geturl\s$URL\s-channel\s$outfile\s\nclose\s$outfile\s\n\nThis\sled\sto\scorrupted\szip\sfiles\sthat\scould\snot\sbe\sread\sby\sthe\szip::vfs\spackage.\s\nThe\scorruption\swas\slimited:\n-\sA\sline\swith\sa\snumber\s(609)\sappeared\sat\sthe\sstart\s(ended\swith\scarriage-return\sline-feed)\n-\sThe\sactual\scontents\sof\sthe\szip-file\sI\swanted\n-\sA\sline\swith\sa\snumber\s(0)\sand\stwo\snewlines\n\nUsing\scode\slike:\s\n\nset\stoken\s[::http::geturl\s$URL]\s\nset\soutfile\s[open\smyzipfile.zip\sw]\s\nfconfigure\s$outfile\s-translation\sbinary\s\nputs\s-nonewline\s$outfile\s[::http::data\s$token]\s\nclose\s$outfile\s\n\ngave\sme\sthe\szip\sfiles\sI\swanted.\s\n\nAccording\sto\sPat\sThoyts\sthis\shas\sto\sdo\swith\schunked\sdata\stransfers.\n
J login arjenmarkus
J mimetype text/plain
J username arjenmarkus
K 1928131fffffffffffffffffffffffffffffffff
U arjenmarkus
Z eed25d071d4812807e7e6a6a19c5489d