Re: [REBOL] Re: How to do CGI POST as client? - solved
From: dud:monmouth at: 15-Dec-2000 15:17
Graham,
> Actually, I posted my message *after* I saw you were having
> problems.
>
I just went back to my email archive and sure enough, I had saved
your message on the off chance that it might be useful. But since
it discussed cookies and authentication, did not realize that it
was really (I'm guessing, now) a general-purpose http client package.
> As I was looking for the form. I didn't realise your cgi
> script was the form.
>
Sometimes I build my cgi engines to be state machines, so that
if you visit it the first time, it shows you the top form, and then
subsequent visits have the new state encoded into the hidden
fields (or the submit button value) so that new pages are displayed.
> <input type=submit name=process value="Lookup">
> <input type=hidden name=process value="Lookup">
>
That "oddity" is an attempt to make the page work correctly
if the user selects an npa (area code) from the drop down,
and types in an nxx (exchange) in the box, and then hits
the Enter key instead of clicking on the submit button.
Bill Dudley