Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^7: problem w/ LWP::UserAgent?

by BrowserUk (Patriarch)
on Jun 03, 2013 at 14:24 UTC ( [id://1036771]=note: print w/replies, xml ) Need Help??


in reply to Re^6: problem w/ LWP::UserAgent?
in thread problem w/ LWP::UserAgent?

If you are using a vanilla installation of Perl and getting this problem from google, I see two possibilities:

  1. You have some other piece of local software -- say a local proxy -- that is interfering.

    I suspect that the error text you are receiving is spurious. Ie. an extended error code left over from an earlier failing operation that is only showing up when you print error message after the (legimate) 500 error from the get.

    You might be able to verify that by setting $^E = 0 before you do the GET. (Untested)

  2. You have done so much automated downloading from google that your IP has risen above their parapet and they are now restricting your IP to connections that use browser user-agent strings.

    Ie. They are blocking requests that aren't from browsers.

    You could test this theory by setting the user-agent string in LWP to something that looks like a browser.

    But beware; because they will soon detect that you are emulating a browser and apply tighter restrictions if not an outright ban if you do this a lot.

Those are my best guesses; its hard to try and help given I cannot reproduce the problem.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1036771]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 04:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found