in reply to At wit's end with LWP/https

Looks like you are mixing HTTP::Request with HTTP::Request::Common. Only the latter lets you use the simple POST syntax.

use HTTP::Request::Common; $request = POST $site, \%choices;

Also, all your earlier messing around with $JSrequest gets nullified when you redefine it completely here:

$JSRequest = POST "$site", %choices;

Finally, I can't see the web page you are submitting to, but I would be very surprised if this works:

search => 'javascript:verify(document.forms[0])');

That would mean the script has to take the search variable and evaluate it, which seems unlikely. Normally scripts which take post variables are on the server - they may produce javascript output, but they don't use javascript themselves. But you know what you're doing.

dave hj~

Replies are listed 'Best First'.
Re: Re: At wit's end with LWP/https
by Shikko (Initiate) on Mar 15, 2001 at 01:15 UTC
    Thank you for helping with the Request/Request::Common difference.

    The page I'm submitting to is here, if you want to see more directly what I mean. Try searching under the 7th circuit, all positions.

    With the

    search => 'javascript:verify(document.forms[0])');
    line, all I was trying to do was echo back every value on the page, including what happened when you hit the Submit button. It seems to make no difference ifit's there or not.

    As an aside, it may be dangerous to assume I know what I'm doing ;)

    ---Chaos, fear and disorder. My work here is done.