in reply to make useragent follow redirects in post actions
#!/usr/bin/pl package MyUa; use LWP::UserAgent; @ISA = "LWP::UserAgent"; sub redirect_ok { # here depending on what you've decided # you return true to follow the redirect # or false to not follow # (we set up the return value depending on # other (previously set up) variable to achieve our goal) # # You can also set some variables here to to modify the way # you'll retrive the new pages elsewhere in your prog/in the LWP #(argh, dirty !) # to change POST to GET by example... } 1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: make useragent follow redirects in post actions
by Specimen (Acolyte) on Feb 21, 2001 at 17:42 UTC | |
by merlyn (Sage) on Feb 21, 2001 at 18:48 UTC | |
by Anonymous Monk on Feb 21, 2001 at 21:14 UTC | |
by Anonymous Monk on Aug 12, 2002 at 03:50 UTC | |
Re: Re: make useragent follow redirects in post actions
by Specimen (Acolyte) on Feb 21, 2001 at 15:34 UTC |