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

Newbie: HTTP Post

 [1/5] from: mike:skinmaster at: 17-Jan-2002 16:58


Hi, I'm new to Rebol, this page: http://www.rebol.com/docs/core23/rebolcore-13.html#sect8.6. Shows a VERY simple HTTP Post, however, when I use it to throw some post data at a URL that just echo's back the Form data and no form data arrives. I've also seen a sample script in the Rebol library that does form post in a lot of lines. What is the simplest way to do a form post? That works! Thanks, Mike

 [2/5] from: lmecir:mbox:vol:cz at: 18-Jan-2002 13:02


Michael Jervis wrote:
> Hi, > I'm new to Rebol, this page:
<<quoted lines omitted: 6>>
> Thanks, > Mike
Hi Mike, I am not sure I understand, what you are trying to achieve. Could you be more specific, please? Cheers Ladislav

 [3/5] from: mike:skinmaster at: 18-Jan-2002 12:21


I wish to read in a set of blocks. The set of blocks consists of two blocks. The first block is a list of form data, the second is a list of urls. I wish to post each set of form data to each url and capture the result to unit test some web sites. Thanks Mike

 [4/5] from: lmecir:mbox:vol:cz at: 21-Jan-2002 13:21


Michael Jervis wrote:
> I wish to read in a set of blocks. > The set of blocks consists of two blocks. The first block is a list of form
<<quoted lines omitted: 3>>
> Thanks > Mike
Hi Mike, sorry for the delay, I was too busy these days. This function works for me: test-pages: function [     {test cgi pages}     pages [block!]     requests [block!] ] [results] [     results: make block! 0     foreach page pages [         foreach form-data requests [             append results read/custom page reduce ['post form-data]         ]     ] ] print test-pages [http://147.230.128.175/cgi-bin/cgicheck.cgi] [     "testing a post request" ] Cheers     Ladislav

 [5/5] from: ladislav:mecir:vslib:cz at: 21-Jan-2002 10:54


Michael Jervis wrote:
> I wish to read in a set of blocks. > The set of blocks consists of two blocks. The first block is a list of form
<<quoted lines omitted: 3>>
> Thanks > Mike
Hi Mike, sorry for the delay, I was too busy these days. This function works for me: test-pages: function [ {test cgi pages} pages [block!] requests [block!] ] [results] [ results: make block! 0 foreach page pages [ foreach form-data requests [ append results read/custom page reduce ['post form-data] ] ] ] print test-pages [http://147.230.128.175/cgi-bin/cgicheck.cgi] [ "testing a post request" ] Cheers Ladislav

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