http://www.perlmonks.org?node_id=1004240


in reply to HTTP error response code 500 using LWP::UserAgent on one site, but not on any other

You can try running Wireshark to catch all packets your machine sends to the server.
Sorry if my advice was wrong.
  • Comment on Re: HTTP error response code 500 using LWP::UserAgent on one site, but not on any other

Replies are listed 'Best First'.
Re^2: HTTP error response code 500 using LWP::UserAgent on one site, but not on any other
by ted.byers (Monk) on Nov 16, 2012 at 21:23 UTC

    Thanks

    Yes, I have tried using Wireshark in the past. I am sure some find it useful, but I had some trouble getting it's user interface to do anything that was useful for me. Part of the problem is it gets everything; most of which is irrelevant to the problem at hand. It would be more useful if it could be told to get the traffic only between my client script and the server it is trying to connect to.

    Thanks again

    Ted

      You need to write a filter expression. In your case it should look like http && ip.addr == <server's IP address> (see example).
      Sorry if my advice was wrong.

        progress of sorts: I have learned, using Wireshark, that the failure happens at the server, in the process of the hand-shaking between client and server involved in the establishment of an SSL connection. My script sends the usual hello message, and normally the other servers I connect to send back their own hello message. This one does not. The diaglog ends with my script sending it's first hello message to the server.

        My challenge right now is two fold. 1) How to get wireshark to dump all the data it has collected (subject to my display filter) to a text file, so that I can send it to the tech guys at the company that owns the server. 2) How to set the level of SSL debugging in the SSL system used by LWP.

        Thanks.

        Ted

        Thanks. That looks like it would help. I'll give it a try and report back.

        Thanks

        Ted