[w3m-dev 01209] http_response_code and ``Location:'' header

From: Kiyokazu SUTO (suto@ks-and-ks.ne.jp)
Date: Tue Oct 17 2000 - 11:57:58 CDT

  • Next message: $B2,ED: "[w3m-dev 01210] a small change to linein.c"

    $B!V(BLocation:$B!W%X%C%@$,$"$k$H!"L5>r7o$K$=$l$K=>$&$h$&$K$J$C$F$^$9$,!"(B
    http_response_code$B$r8+$F(B301$B!A(B303$B$N;~$@$1=>$&$h$&$K$7$F$_$^$7$?!#(B

    # $B$"$k%Z!<%8$r8+$h$&$H$9$k$H(Bhttp_response_code$B$,(B200$B$+$D<+J,<+?H$r;X$9(B
    # $B!V(BLocation:$B!W%X%C%@$,$D$$$F$$$k$?$a$K!"L58B$K(BHTTP$B%j%/%(%9%H$r7+$jJV(B
    # $B$9$N$G!#(B

    $B9THV9f0J30$O2,It$5$s$N(B

      http://www4.ocn.ne.jp/~okabek/w3m-0.1.11-pre-kokb15_16.patch

    $B$^$G$rEv$F$?>uBV$+$i$N:9J,$K$J$C$F$$$kH&$G$9!#0c$C$F$$$F<j%Q%C%A$G$bBg(B
    $B$7$?$3$H$OL5$$$H;W$$$^$9$,!#(B

    -- 
    $B?\F#(B $B@60l(B <suto@ks-and-ks.ne.jp>
    http://pub.ks-and-ks.ne.jp/pgp-public-key.html
    

    --- file.c.old Sun Oct 15 21:31:37 2000 +++ file.c Wed Oct 18 01:42:30 2000 @@ -998,7 +998,7 @@ t = checkContentType(t_buf); if (t == NULL) t = "text/plain"; - if ((p = checkHeader(t_buf, "Location:")) != NULL) { + if (http_response_code >= 301 && http_response_code <= 303 && (p = checkHeader(t_buf, "Location:")) != NULL) { /* document moved */ tmp = Strnew_charp(p); Strchop(tmp);



    This archive was generated by hypermail 2b29 : Tue Oct 17 2000 - 12:06:26 CDT