Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I upload a file to a https server?

by sacked (Hermit)
on Jun 07, 2004 at 17:06 UTC ( [id://362046]=note: print w/replies, xml ) Need Help??


in reply to How do I upload a file to a https server?

file is not the name of any of the form fields listed in the HTML you posted. If you are trying to send a file through the FILE1 form field, for example, you need to change the field name passed to the Content portion of the call to $browser->post():
my $response = $browser->post( $url, Content_Type => "multipart/form-data", Content => [FILE1 => ['data.txt']] );

--sacked

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-18 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found