Skip to content
Tcl Source Code Artifact [6434700b5c]
Login

Artifact [6434700b5c]

Artifact 6434700b5c102b6ddf51e190631dcd909b13561e:

Ticket change [6434700b5c] - Ticket [3102850fffffffff|3102850fff] <i>HTTP does not follow redirects</i> status still Open with 4 other changes by kjnash on 2012-10-30 10:27:22.
D 2012-10-30T10:27:22
J icomment I\ssuggest\sthat\sfollowing\sredirects\sis\snot\sa\ssuitable\sfeature\sfor\sthe\shttp::geturl\swhich\simplements\sa\ssingle\sHTTP\srequest.\n\nThe\sredirect\sproblem\sis\snot\ssimple\sbecause\sRFC\s2616\sinsists\swe\sMUST\shave\suser\sconfirmation\sin\scertain\scases:\sa\sPOST\swhen\sthe\sresponse\scode\sis\s301,\s302,\sor\s307.\s\sThis\smeans\sthat\shttp::geturl\smust\seither\srefuse\sthese\sredirects,\sor\sprovide\shooks\sfor\suser\sinteraction.\n\nI\ssuggest\sthat\sTcllib\sis\sa\sbetter\splace\sfor\sredirection\scode\sthan\sthe\shttp\spackage\sitself.\n\nI\shave\sa\swrapper\slibrary\sfor\spackage\shttp\sthat\sprovides\sthe\snecessary\scode\sto\sfollow\sredirects,\sand\shandle\sauthorization\s(401),\sincluding\shooks\sfor\suser\sinteraction.\s\sI\sintend\sto\soffer\sthis\scode\sto\sTcllib\swhen\sit\sis\sfinished\s(I\sam\sstill\sfixing\sbugs\sright\snow).\n
J login kjnash
J mimetype text/plain
J username kjnash
K 3102850fffffffffffffffffffffffffffffffff
U kjnash
Z bd92a7f13b3c586687699c9b19437b33