in reply to LWP: transfer from Python to Perl
Thanks hipo,haj for your comments !
both code fragments are just fragments. The use commands I have at the beginning. Also the # sign was comming from trying different things out.
"does not work" is indeed not specific! Sorry for that ! The issue is that the python version works fine. The server gives back the requested data. In the perl version the server response with an Error 500 Internal Server Error. That mens that something must be different in the two sended POSTs.
When the line #$request->content($json_data) is commented out, than the server response an error 411 Length Required
What would also help: Can I log what was exactly sent in both cases, to be able to compare all sent data ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LWP: transfer from Python to Perl
by hippo (Archbishop) on Jan 10, 2018 at 15:40 UTC | |
by Anonymous Monk on Jan 10, 2018 at 17:34 UTC | |
by hippo (Archbishop) on Jan 10, 2018 at 18:11 UTC | |
by Anonymous Monk on Jan 10, 2018 at 20:02 UTC | |
by hippo (Archbishop) on Jan 11, 2018 at 09:29 UTC | |
| |
by Anonymous Monk on Jan 10, 2018 at 16:00 UTC | |
by poj (Abbot) on Jan 11, 2018 at 09:49 UTC |