Re: Urgent Help needed with Post method file upload

[email protected] (Philippe 'BooK' Bruhat)
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
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, 
> 'datafile', Content-Type => 'application/octet-stream', Content => 
> $filedata ] ]);
> 
> 
> When I run the script, I get:
> 
> Bareword "Content" not allowed while "strict subs" in use at 
> regcompliance.pl line 438
> 
> Any ideas?

s/Content-Type/Content_Type/

-- 
 Philippe "BooK" Bruhat

 In the contest between simplicity and silence, silence hasn't got a prayer.
                                    (Moral from Groo The Wanderer #15 (Epic))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.