Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Performing a GET request with SSL

by 1nickt (Canon)
on Aug 01, 2019 at 12:55 UTC ( [id://11103708]=note: print w/replies, xml ) Need Help??


in reply to Performing a GET request with SSL

Hi there again,

Here are a few thoughts:

  • I would avoid calling your client $mech if you are not using Mechanize! $ua is a common name.

  • I would avoid calling your response object $content since it may not even have any content. $resp is a common name.

  • I would use curl -v to see more details about the request and response, or maybe even better install LWP::ConsoleLogger::Easy. I might also use $resp->as_string for a quick and dirty look at the request and response.

  • I would try to get information from the server about the internal error. Was it caused by your SSL opts? Can the admins tell you anything?

  • I would consider that the doc for LWP::UserAgent appears to show that ssl_opts only supports three of the six options you are passing it.

Hope this helps!


The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found