Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] How to do CGI POST as client?

From: dud::monmouth::com at: 13-Dec-2000 14:06

Folks, I've tried to create a simple script that submits a filled out form to a CGI server, but the server access log only shows a GET, not a POST operation. Is the "read/custom . . . post" construct broken? I saw an earlier query on the rebol-list archives asking a similar question but no reply to it (or I wouldn't have bothered you. This script should do a query of a database and return with an answer. Instead, it just returns the original form as if the POST didn't happen. (And that's what apache's access_log on the web server shows.) Thanks, Bill Dudley Monmouth Internet P.S. script below. REBOL[ Title: "dud's test" Date: cvs-date "$Date: 2000/12/13 13:53:35 $" ;Version: "$Revision: 1.0 $" Rights: "Copyright (C) William Dudley 2000" ] sites: [ [ url: http://badminout.monmouth.com/cgi-bin/cgiwrap/dud/dsl.cgi ] ] foreach site sites [ do site result: read/custom url [ post {npa="732"&nxx="842"&process="Lookup"} ] tag-text: load/markup result text: make string! 2000 foreach item tag-text [ if string? item [append text item] ] print text print url print {npa="732"&nxx="842"&process="Lookup"} ]