Re: Urgent Help needed with Post method file upload
"Eric Langheinrich" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <006c01c5a038$32f49670$0800a8c0@UNSPAM1> |
> Are you able to inspect the file received on the server side to figure
> out what is actually different?
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 = $ua->request($req);
The response from the server is basic header information and an XML string.
I have the following to receive the response:
if ($response->is_success) {
print $response->as_string;
print $response->content;
my $task_add_response = $response->content;
$_[1] = $task_add_response;
} else {
die_nice($response->status_line, "\n");
}
Thank you,
Eric