Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I get this error message when I run the below LWP code. Could someone help me to resolve this?
<font face="Arial" size=2>Exception occurred. </font> <p> <font face="Arial" size=2>/Submit/SubmitMain.asp</font><font face="Ari +al" size=2>, line 83</font>
Thanks for your help.
Regards,
Raja
Here is the code. -----------------------------------------------------------
#!/usr/bin/perl require 5; #use strict; use warnings; use HTTP::Request::Common qw(POST); use LWP::UserAgent; my $ua = LWP::UserAgent->new; $url ='http://xyz.com/Submit/SubmitMain.asp'; my $res = $ua->request(POST $url, Content_Type =>'form-data', Content => [ Location => 'MM02', Tickettype => '5120', CoreDirCorrect => 1, PhoneNumber => '12335656787', CustomerImpact => 3, 800014118 => 0, Severity => 'HIGH', InitialDescription => 'Test Request', SUBMIT1 => 'Submit Ticket Request']); # Check the outcome of the response if ($res->is_success) { print $res->content; } else { print "Bad luck this time\n\n"; print $res->as_string; }
20060315 Janitored by Corion: Added formatting, removed PRE tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error while compiling LWP code
by ikegami (Patriarch) on Mar 15, 2006 at 20:35 UTC | |
|
Re: Error while compiling LWP code
by InfiniteSilence (Curate) on Mar 15, 2006 at 19:44 UTC | |
by mraja_23 (Initiate) on Mar 15, 2006 at 20:33 UTC | |
|
Re: Error while compiling LWP code
by derby (Abbot) on Mar 15, 2006 at 20:37 UTC | |
by ikegami (Patriarch) on Mar 15, 2006 at 20:39 UTC | |
by derby (Abbot) on Mar 15, 2006 at 20:47 UTC |