in reply to get URI of redirected page with LWP
For example:
simple_request
This method dispatches a single request and returns the response received. Arguments are the same as for the request in LWP::UserAgent described above.my $request = HTTP::Request->new( ... ); my $res = $ua->simple_request( $request ); my $res = $ua->simple_request( $request, $content_file ); my $res = $ua->simple_request( $request, $content_cb ); my $res = $ua->simple_request( $request, $content_cb, $read_size_hint +);The difference from request in LWP::UserAgent is that simple_request will not try to handle redirects or authentication responses. The request in LWP::UserAgent method will, in fact, invoke this method for each simple request it sends.
|
|---|