problems assembling POST HTTP::Request

C

cerr

Hi,

I'm trying to post a filename (that generally comes out of a html
<input type="file" box) to a perl script out of my perl script that
should pretend as if it was done by hand on the webpage...
The code POST request i came up with looks like this:

my $post = HTTP::Request->new(POST => $PostPage,
Content_Type => 'form-data',
Content => [ filename => 'file://mnt/ENGINEERING/Docs/Tropos/
pAce34-7.1.2.3-5189k-efs.bin',
]);

but when i execute it i get:

Bad header argument at ./upgrdeFrmwr.pl line 50

Where line 50 is the first line of my POST request... I do'nt
understand, what kind of header argument may I require?

Thanks for hints and ideas!
Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top