Update: it does:
(only it does the last 4 lines depth-first recursively, using $response->previous to look up earlier redirect $response's). Hmm, $code doesn't seem to be used anywhere there...$response = $ua->request($request); ... my $method = $response->request->method; my $url = $response->request->url->as_string; my $code = $response->code; print "$method $url --> ", $response->status_line, "\n";
In reply to Re: detect redirect
by ysth
in thread detect redirect
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |