in reply to Re: undefined value as filehandle from Curl.pm
in thread undefined value as filehandle from Curl.pm
use LWP::Curl; use Net::Curl::Easy qw(:constants); my $lwpcurl = LWP::Curl->new(); my $referer = 'http://server.com/:5555'; my $post_url = 'http://userid:password@server.com:5555/receive'; open(my $fh, "<", "test.xml"); $lwpcurl->{agent}->setopt( CURLOPT_READDATA, $fh ); $lwpcurl->{agent}->setopt( CURLOPT_HEADERDATA, ['Content-Type:text/xml +'] ); my $content = $lwpcurl->post($post_url, {}, $referer);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: undefined value as filehandle from Curl.pm
by stevieb (Canon) on Jun 28, 2016 at 15:34 UTC | |
by wanderedinn (Sexton) on Jun 28, 2016 at 16:14 UTC | |
by stevieb (Canon) on Jun 28, 2016 at 16:21 UTC | |
by wanderedinn (Sexton) on Jun 28, 2016 at 16:29 UTC | |
by wanderedinn (Sexton) on Jun 28, 2016 at 19:17 UTC |