<i>HTTP does not follow redirects</i> status still Open with 6 other changes
by
.
D 2022-09-10T12:17:07.157
J closer nobody
J comment I\sam\sreferring\sto\sredirects\ssuch\sas\sthe\s301\sHTTP\sredirect\swhich\sis\swhen\sa\spage\shas\smoved\spermanently.\r\n\r\nAt\spresent\sthe\shttp\spackage\sdoes\snot\sappear\sto\sfollow\ssuch\sredirects.\r\n\r\nThis\sis\snot\sthe\snature\sof\swhich\shttp\swas\sintended\sto\sbe\sused\sand\sshould\sbe\sfixed\saccordingly.
J icomment Bug\s[3612478]\sis\sa\sduplicate\sof\sthis\sone.\s\sI\shave\sclosed\sthat\sbug,\sand\scopied\sHarald's\scomments\sbelow:\r\n(kjnash)\r\n\r\nIMHO\sit\swould\sbe\shelpful,\sif\shttp::geturl\swould\sfollow\sredirects\sautomatically\s(or\swith\san\soption).\r\n\r\nFollowing\shttp://wiki.tcl.tk/1475\r\n\r\nThus\s\r\n::http::geturl\s$url\s-followredirect\s1\r\nwould\sdo:\r\nproc\sgeturl_followRedirects\s{url\sargs}\s{\r\n\s\s\s\s\swhile\s{1}\s{\r\n\s\s\s\s\s\s\s\sset\stoken\s[eval\s[list\shttp::geturl\s$url]\s$args]\r\n\s\s\s\s\s\s\s\sswitch\s-glob\s[http::ncode\s$token]\s{\r\n\s\s\s\s\s\s\s\s\s\s\s30[1237]\s{\s###\sredirect\s-\ssee\sbelow\s###\s}\r\n\s\s\s\s\s\s\s\s\s\s\sdefault\s\s{\sreturn\s$token\s}\r\n\s\s\s\s\s\s\s\s}\r\n\s\s\s\s\s\s\s\supvar\s#0\s$token\sstate\r\n\s\s\s\s\s\s\s\sarray\sset\smeta\s[set\s${token}(meta)]\r\n\s\s\s\s\s\s\s\sif\s{![info\sexist\smeta(Location)]}\s{\r\n\s\s\s\s\s\s\s\s\s\s\sreturn\s$token\r\n\s\s\s\s\s\s\s\s}\r\n\s\s\s\s\s\s\s\sset\surl\s$meta(Location)\r\n\s\s\s\s\s\s\s\sunset\smeta\r\n\s\s\s\s\s}\r\n\s\s}\r\n\r\nThank\syou,\r\n-\sHarald
J login kjnash
J mimetype text/x-fossil-plain
J severity Minor
K 3102850fffffffffffffffffffffffffffffffff
U kjnash
Z b17df1af67f0886dd73924e30c71ff8f