Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: CGI Uploading Trouble

by steves (Curate)
on Nov 10, 2004 at 20:23 UTC ( #406787=note: print w/ replies, xml ) Need Help??


in reply to CGI Uploading Trouble

Here's a snippet from an upload script I use. I can't remember where I found the docs that explain what to set here though. I will look.

$response = $ua->request(POST $url, Content_Type => 'form-data', Content => [ TextField1 => "TEST", mptest => +[$file]]);
$file is just the name of the file but I seem to recall that it can also be a filehandle.


Comment on Re: CGI Uploading Trouble
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://406787]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2015-07-06 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls