CnUnix

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ CnUnix ] in KIDS
글 쓴 이(By): shanx (ratio)
날 짜 (Date): 2004년 10월  1일 금요일 오후 10시 55분 27초
제 목(Title): Re: [Q] perl에서 redirect


  perldoc LWP::UserAgent 를 보니 다음과 같은 내용이 나오네요. 원래 기본적으로
GET, HEAD만 리다이렉트를 따라 갑니다. POST 도 추가하려면 아래와 같이....

   $ua->requests_redirectable( \@requests )
        This reads or sets the object’s list of request names that
        "$ua->redirect_ok(...)" will allow redirection for.  By default,
        this is "[’GET’, ’HEAD’]", as per RFC 2068.  To change to include
        ’POST’, consider:

              push @{ $ua->requests_redirectable }, ’POST’;

[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.