flixz has asked for the wisdom of the Perl Monks concerning the following question:
The files are transmitted to the webserver without any problems. I need to send files using a different method for creating a HTTP::Request object because I need to use the $req->proxy_authorization_basic method, which I can't access using the previous method. When I use the following code:$res = $ua->request(POST $server, Content_Type => 'form-data', Content => [ login => $ICT_login, filenaamOriginal => $test_file, test=>'JA', filenaam => [$test_filename, $test_file], ]);
I get the following error message: Bad header argument at eclient.pl line 2035 My guts say this a very trivial problem but I can't seem to figure out what I'm doing wrong ;-)$req = HTTP::Request->new (POST => $server, Content_Type => 'form-data', Content => [login => $ICT_login, filenaamOriginal => $test_file, test => 'JA', filenaam => [$test_filename,$test_file], ]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems creating a proper HTTP::Request object for sending files
by Abigail-II (Bishop) on Jun 06, 2002 at 11:37 UTC |