in reply to 500 error with LWP:UserAgent
Hi there!
Would like to help, but this is not a Perl question. As you said, changing the URL to another site, it-just-works. The problem is knowing what that payment system company expects; unfortunately their documentation seems to be private. You'll need a peek at the documentation or some help from them directly.
Update: Okay, have to apologize I guess, since I decided to try your code here anyway. It turns out with v5.18.4, i get your 500 error, and with v5.20.0 i get web content back saying that an error occurred (in Spanish). With the exact same copy of your code. Odd.
Update2: Wireshark revealed it was an SSL error causing the problem. Something must have changed in the Perl SSL module between v18 and v20. Anyway, if you change the ssl_opt to that given below, the code works in either version:
my $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0, SSL_v +ersion => 'TLSv1' });
You may want to look at the other SSL options as listed in the IO::Socket::SSL docs.
HTH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 500 error with LWP:UserAgent
by RenardBleu (Sexton) on Nov 04, 2014 at 12:42 UTC | |
by Loops (Curate) on Nov 04, 2014 at 13:47 UTC | |
by RenardBleu (Sexton) on Nov 04, 2014 at 15:13 UTC | |
by Loops (Curate) on Nov 04, 2014 at 15:28 UTC | |
by RenardBleu (Sexton) on Nov 04, 2014 at 15:54 UTC | |
by RenardBleu (Sexton) on Nov 04, 2014 at 14:37 UTC |