Hi,
I have a script that submits a list of parameters to a server and prints out the result.
#!/usr/bin/perl -w
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$ua->agent('Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)');
use HTTP::Request::Common qw(POST);
my $req = (POST 'http://url_to_post',
[username => "value",
usermail => "value"]);
$request = $ua->request($req);
$content = $request->content;
print $content;
Then I got these message back:
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<BODY BGCOLOR='#FFFFFF'>
The following error has occured getting your search details:
No boundary= in CONTENT_TYPE (application/x-www-form-urlencoded) [M000
+55]
Have you tried the browser compatibility test page?
My browser should be compatible. Even through I changed to higher level, this erro message always comes out.
Please help
Edit by castaway - added code tags around error
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.