Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > problems assembling POST HTTP::Request

Reply
Thread Tools

problems assembling POST HTTP::Request

 
 
cerr
Guest
Posts: n/a
 
      09-22-2010
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Typical PC Assembling Problems Silverstrand Front Page News 0 08-15-2006 04:59 PM
jar assembling tool ...? Malte Java 9 04-25-2005 06:47 AM
Assembling a Message from System.in (Standard Input) Rogue Chameleon Java 6 10-05-2004 08:03 PM
Problem assembling new computer 1st-timer Computer Support 15 03-07-2004 10:45 PM
Problem assembling new computer Palindrome Computer Support 4 03-06-2004 08:10 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57