Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: json return value

by Corion (Pope)
on Jul 11, 2013 at 08:38 UTC ( #1043655=note: print w/ replies, xml ) Need Help??

in reply to json return value

Have you looked at the status code and the content of your response?

my $res= $ua->request($req); print $res->is_success ? "yay\n" : "error\n"; print sprintf "Status %d\n", $res->code; print $res->decoded_content;

Maybe the module is correct and you don't actually get JSON back, but an error message that starts with Can't connect to myurl....

Comment on Re: json return value
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2015-11-30 11:29 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls