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

Is it possible to fill a Web Form

 [1/3] from: gary::groupmiller::com at: 24-Oct-2000 19:58


Might it be possible to use Rebol to : 1) Access a web page and actually fill in the fields in a form on the page? -- or -- 2) Have Rebol pass data directly to an ODBC connection on another server? As you might be guessing, the real purpose would be to "post" data from an in-house server into a web server database, like MS SQL, without the need for DTD, etc. BTW: I am quite new to Rebel & am very interested in practical applications. I have both books. This list is interesting, but overwhelming & somewhat esoteric. I work primarily with database driven applications that are in a constant state of flux. Thus I need tools that are easy to implement & straight forward to modify. Any suggestions would be helpful, Thanks ------------------------------------------------------- Gary L. Miller | filePro The Miller Group | APPGEN (253) 939-2307 Fax (253) 735-8384 | SCO [gary--groupmiller--com] | Linux http://www.groupmiller.com | Win95/98/NT/2000

 [2/3] from: bo:rebol at: 26-Oct-2000 13:39


Gary, Yes, it is possible to digitally fill out the fields in a form on a web page. It takes a bit of research to do this: 1) Go to the form you want to fill out automatically with a browser or using REBOL. 2) View the HTML source of the page. Find the <POST ...> tag. a) If the POST METHOD="GET", then you submit the form in the following manner: a: read http://address.to.form.here/form.cgi?field1=value1&field2=value2&... b) If the POST METHOD="POST", download http-post.r from REBOL's script library and use the http-post-form function instead of the above method. Submit the form to the address specified in the POST tag. To find the fields the form is expecting, look through the page source between the opening and closing <POST> tags and look for all the tags that start with INPUT, SELECT, TEXTAREA (that should be most of them). These should have name= in them somewhere. That's the field name the CGI form is expecting. I hope that's enough to get you started! -Bo On 24-Oct-2000/19:58:40-7:00, [gary--groupmiller--com] wrote:
>Might it be possible to use Rebol to : >1) Access a web page and actually fill in the fields in a form on the page?
<<quoted lines omitted: 20>>
>[rebol-request--rebol--com] with "unsubscribe" in the >subject, without the quotes.
-- Bohdan "Bo" Lechnowsky REBOL Adventure Guide REBOL Technologies 707-467-8000 (http://www.rebol.com) The Official Source for REBOL Books (http://www.REBOLpress.com)

 [3/3] from: ingo:2b1 at: 27-Oct-2000 21:21


Hi Gary, you should have a look at http://www.rebol.cz/~rebol/cgi/ , too ... it creates a cgi skeleton for you (I haven't tested myself, though). regards, Ingo Once upon a time Bohdan Bo Lechnowsky spoketh thus:

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted