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.

In reply to Re^7: problem w/ LWP::UserAgent? by BrowserUk
in thread problem w/ LWP::UserAgent? by dorianwinterfeld

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.