wanderedinn has asked for the wisdom of the Perl Monks concerning the following question:
So, I want to emulate the following curl command:
curl -X POST -d @test.xml http://user:password@server.com:5555/ --head +er "Content-Type:text/xml"
Using LWP::Curl I've tried this:
my $hash_form = { 'data' => '@test.xml', 'header' => 'Content-Type:text/xml', }; my $content = $lwpcurl->post($post_url, $hash_form, $referer);
But I don't get the content of the file passed. Any suggestions would be appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: curl http post using LWP::Curl
by NetWallah (Canon) on Jun 07, 2016 at 17:02 UTC | |
by wanderedinn (Sexton) on Jun 10, 2016 at 16:55 UTC | |
by Corion (Patriarch) on Jun 11, 2016 at 06:49 UTC | |
by wanderedinn (Sexton) on Jun 28, 2016 at 19:19 UTC | |
|
Re: curl http post using LWP::Curl
by Corion (Patriarch) on Jun 07, 2016 at 16:25 UTC | |
by wanderedinn (Sexton) on Jun 07, 2016 at 16:31 UTC | |
by Corion (Patriarch) on Jun 07, 2016 at 16:34 UTC | |
by wanderedinn (Sexton) on Jun 07, 2016 at 16:39 UTC |