Skip to content
Tcl Source Code Artifact [e53299feee]
Login

Artifact [e53299feee]

Artifact e53299feee6fee3393dc3ca34d8947c55509fa69:

Ticket change [e53299feee] - Ticket [2874782fffffffff|2874782fff] <i>http 2.7.2 fails to correctly parse input </i> status still Open with 4 other changes by cwjolly on 2009-10-12 01:21:32.
D 2009-10-12T01:21:32
J icomment When\sI\swrote\sthis\sbug\smy\sintention\swas\sto\sshow\sthat\sthere\swere\sblank\slines\sin\sthe\sinput\sbefore\sthe\sresponse\sheader,\sI'm\sa\sunix\sguy\sso\sI\snaturally\sused\s\\n\sbut\sin\sreality\sit\scould\shave\sbeen\s\\r\\n.\sMy\sonly\sintention\swas\sto\sshow\sthe\sblank\slines;\sa\sseries\sof\s\s4\sblank\slines\sbefore\sthe\sheader\smay\sbe\smisinterpreted\sby\sanyone\sthat\slooks\sas\sthis\sbug\sas\sa\sformating\sto\sset\sthe\soutput\soff\sfrom\sthe\srest\sof\sthe\stext.\s\sAs\sthe\scontent-length\svalue\sshows\sup\safter\sthe\sresponse\sheader\sline\sit\shas\sno\seffect\son\show\sthe\shttp::get_url\sfunction\sgets\sthe\sresponse\sheader.\sWhat\sI\sdo\sknow\sis\sif\sthe\sreponse\sheader\sis\snot\scorrectly\sread\sin,\smany\sof\sthe\sstate\sarray\sitems\sare\sincorrect\sor\smissing.\s\sWhether\son\sthe\sfirst\stime\sor\sthe\s5th\stime,\sanytime\sthis\shappens\sit\sis\sa\sbad\sthing.\s\sWithout\sknowing\sfor\ssure;\sI\scannot\sbelieve\sthat\sthe\sencoding\shas\sanything\sto\sdo\swith\sthe\sresponse\sheader\s\sas\sit\sarrives\sbefore\sthe\smetadata\sthat\sholds\sthe\sencoding\sparameter.\s\sThe\sencoding\swould\sonly\sbe\sapplicable\sto\sthe\sactual\scontent.\sThe\serror\sis\snot\sin\sthe\scontent\sbut\sthe\scontent\sis\snot\scorrect\sif\sthe\sresponse\sheader\sis\sblank\san\sthe\scontent\s\s(i.e.\sstate(body)\sshows\sup\s\sas\sa\smetadata\sitem.\s\sIf\sno\sone\scan\sthink\sof\sa\sreason\s\snot\sto\sread\suntil\syou\sget\sto\sa\snon-blank\sresponse\sheader\sline\sthen\sas\sa\smatter\sof\srobustness\sthis\scode\sshould\sbe\scorrected\sas\sI've\sindicated.\s\s\s\n
J login cwjolly
J mimetype text/plain
J username cwjolly
K 2874782fffffffffffffffffffffffffffffffff
U cwjolly
Z f53fb5b209b563c1e766f12cc47f6b41