osram has asked for the wisdom of the Perl Monks concerning the following question:
$postcontent is a string, something like:$req=$ua->post($myurl, [$postcontent], @netscape_like_headers, 'Content-Type' => 'application/json; charset=utf-8' );
When I watch what is being sent with Ethereal/Wireshark, it all looks correct, and works fine: I see the application/json content header, the correct content-length, then \r\n\r\n followed by the post data.{"slv":{"__type":"Presenters.JCMII.Views.SendLetterView","SelectedItem +Ids":[1,2,3]}}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inconsistencies posting data with LWP::UserAgent
by ikegami (Patriarch) on Jul 26, 2009 at 23:02 UTC |