Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Checking contents of fetched URL.

by holli (Monsignor)
on Jan 29, 2010 at 22:54 UTC ( #820419=note: print w/ replies, xml ) Need Help??

in reply to Checking contents of fetched URL.

The presence of ->content in your output should have given you a hint. The term $res->content does not get interpolated, only $res does.

You want: print "\nResponse = ", $res->content, " \n"; just as you did in the two lines above.


You can lead your users to water, but alas, you cannot drown them.

Comment on Re: Checking contents of fetched URL.
Select or Download Code
Re^2: Checking contents of fetched URL.
by ajay.awachar (Acolyte) on Jan 29, 2010 at 23:43 UTC

    I got your point on interpolation problem with $res->content. But even after replacing it with

     print "\nResponse = ", $res->content, " \n";

    I am still not getting the exact contents. I'm not getting any output for $res->content. I even tried  print "Response =  ".$res->as_string(); but it gives me some errors regarding unavailability of HTML/ Any idea on this.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2015-03-29 04:48 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (630 votes), past polls