Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by dorianwinterfeld (Acolyte)
on May 31, 2013 at 17:03 UTC ( [id://1036271]=note: print w/replies, xml ) Need Help??


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

not intentionally

Replies are listed 'Best First'.
Re^5: problem w/ LWP::UserAgent?
by BrowserUk (Patriarch) on May 31, 2013 at 20:40 UTC

    The LWP I used in my test was the one that came with my copy of 5.16.1.

    Seems weird that your copy performs differently if you have not installed anything extra?


    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.
      I installed Perl 5.16.3. I re-installed modules using the PPM Profiler. Scrolling thru PPM I don't see SSL but I do see LWP-Protocol-https. LWP is ver 6.04.

        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://1036271]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found