Shikko has asked for the wisdom of the Perl Monks concerning the following question:
I checked LWPcook, I read the other posts, all to no avail. I am trying to write a script that will grab successive web pages. The first step is to fill out a form and submit it through https to a JavaScript that will take the values given and generate a successive page, which I will also (down the road) need to munge. The relevant part of my script is:
The problem is this returns a few headers and then "You do not have a value in the TAB field." The tab field is defined in %choices. If I make$JSRequest = new HTTP::Request; # create new request %choices = (circuit => 'c7', district=> 'ALL', judge_type => '', jobSe +arch_year => '', judge_first => '', judge_last => '', open => 'R', closed => 'R', term => 'R', perm => 'R' +, TAB => 'viewJob', pos_open => 'on', pos_close => 'on', pos_term => 'on', pos_perm => 'on +', order_by =>'A', search => 'javascript:verify(document.forms[0])'); # save choices as associative array $JSRequest->header(Content-type => 'form-data'); # set content type $JSRequest = POST "$site", %choices; # Fill in all values expected by the form $JSRequestResult = $ua->request($JSRequest); # save response of the request stored in $JSRequest
into$JSRequest = POST "$site", %choices;
I get: 500 Internal Server Error$JSRequest = POST "$site", \%choices;
and I have no way to check why, as the web server is not something to which I have access.
My question is: why am I getting this error? Does anyone have any ideas about how I could do this differently?
--- Chaos, fear and panic. My work here is done.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: At wit's end with LWP/https
by dash2 (Hermit) on Mar 14, 2001 at 23:52 UTC | |
by Shikko (Initiate) on Mar 15, 2001 at 01:15 UTC | |
|
Javascript-only form Re: At wit's end with LWP/https
by andye (Curate) on Mar 15, 2001 at 20:08 UTC |