From: Kazuhiro NISHIYAMA Date: 2001-05-02T07:27:57+09:00 Subject: [ruby-list:29482] Re: rnet.rb 〜高レベルネットライブラリ〜 In <20010429164803-28016S.0722406601@jcom.home.ne.jp> On Sun, 29 Apr 2001 16:45:40 +0900 rubikitch wrote: > RNet/HTTPでは3xx系は再試行するようにしてます。 > ブラウザの動作を真似たような。 無条件に再試行するとループするようなリダイレクトではまりますが、 大丈夫なのでしょうか? # 実装をみるとメモリ不足で止まってくれそうですが…。 RFC2616の10.3 Redirection 3xxより引用 > 10.3 Redirection 3xx > > This class of status code indicates that further action needs to be > taken by the user agent in order to fulfill the request. The action > required MAY be carried out by the user agent without interaction > with the user if and only if the method used in the second request is > GET or HEAD. A client SHOULD detect infinite redirection loops, since > such loops generate network traffic for each redirection. > > Note: previous versions of this specification recommended a > maximum of five redirections. Content developers should be aware > that there might be clients that implement such a fixed > limitation. 「A client SHOULD detect infinite redirection loops」なので 何とかしておいた方がいいと思います。 -- |ZnZ(ゼット エヌ ゼット) |西山和広(Kazuhiro NISHIYAMA)