I was just working on a page-size checking script.
I fetched images with LWP::UserAgent, and added one sensible check, whether the response was a success or not. Otherwise images not fetched properly, due to my code or the code of the page being incorrect, would report their size as the size of the 404 message.
However, the if($response->is_success) test was passed, even when the image wasn't there.
So I looked at the $response->status_line and it was 202, which when I looked it up, turned out to be an ambiguous, non-committal HTTP response.
If I tried to get the images with a regular browser, I see a 404, but when trying to fetch them with LWP::UserAgent, I'm getting 202?
I put a check in my code that the response is "200 OK" for the time being, but what's going on? Any ideas?
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print
In reply to Non-commital HTTP Response? by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |