Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: problem with getting web source

by WojciechGajewski (Initiate)
on Mar 24, 2013 at 17:08 UTC ( #1025165=note: print w/ replies, xml ) Need Help??


in reply to Re: problem with getting web source
in thread problem with getting web source

Yes, it works fine from the browser. You can check it yourself. Just click the gutenberg link. The failure means instead of the source page I am getting an empty string.


Comment on Re^2: problem with getting web source
Re^3: problem with getting web source
by Corion (Pope) on Mar 24, 2013 at 17:18 UTC

    Just because it works for me, from my browser, does not mean that it will work for you, from your browser.

    I suggest you now use LWP::UserAgent to do the URL downloading. That way, you get more detailed error information instead of just a pass/fail status.

      Exactly! I had to use some useragent. the default get method apparently doesnt use any and hence I couldnt download the source! Thanks! Problem solved!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2014-09-22 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (177 votes), past polls