Eric Langheinrich [EMAIL PROTECTED] writes:
Okay, so in the useragent, I pass the filename as an array reference
[$task_add_datakey] what actually gets the contents of the file and
posts them?
The form_data() function in the HTTP::Request::Common module reads the
content.
Is there another
Eric Langheinrich [EMAIL PROTECTED] writes:
I'm not able to inspect the file on the host. I get back and XML
string with a result.
Try to print the request that POST() returns above to see if you can
spot what is wrong.
$req = POST($baseurl, );
print $req-as_string;
$res
What I suggested above was to inspect the request before it is sent,
since you seemed to think that it was not set up properly.
At this point, I'm pretty sure the request is perfect! Thank you for the
help. I taking that function out of the overall script and running it
byitself, seems to
I'm attempting to post a file in a multipart/form-data post using
LWP::UserAgent and the following command string:
my $response = $ua-request(POST $baseurl, Content_Type = 'form-data',
Content = [ request_params = $task_add_postkey, datafile =
[$task_add_datakey] ]);
Where $task_add_postkey
Eric Langheinrich [EMAIL PROTECTED] writes:
I'm attempting to post a file in a multipart/form-data post using
LWP::UserAgent and the following command string:
my $response = $ua-request(POST $baseurl, Content_Type = 'form-data',
Content = [ request_params = $task_add_postkey, datafile =
?
- Original Message -
From: Gisle Aas [EMAIL PROTECTED]
To: Eric Langheinrich [EMAIL PROTECTED]
Cc: libwww@perl.org
Sent: Saturday, August 13, 2005 12:05 PM
Subject: Re: Urgent Help needed with Post method file upload
Eric Langheinrich [EMAIL PROTECTED] writes:
I'm attempting
I reread the docs and saw this:
[ $file, $filename, Header = Value... ]
[ undef, $filename, Header = Value,..., Content = $content ]The first
value in the array ($file) is the name of a file to open. This file will be
read and its content placed in the request. The routine will croak if the
Le samedi 13 août 2005 à 16:40, Eric Langheinrich écrivait:
I reread the docs and saw this:
snip
And updated my post request to look like this:
my $response = $ua-request(POST $baseurl, Content_Type = 'form-data',
Content = [ request_params = $task_add_postkey, datafile = [ undef,