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.