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

CGI POST Protocol

 [1/10] from: mfontana7::inwind::it at: 16-Sep-2003 21:38


Hi, I have already looked at the docs and example scripts but I have not found anything that can help me. I would like to know a way to send data to a web-server as if it received it from a normal page with a form and using the POST protocol. In detail, I want to skip a front page asking for a password interactively by sending the needed data to the web-server directly through REBOL and so obtaining directly the second protected page. Is it possible (is everything possible? 8) ), and how? Thanks in advance M&F

 [2/10] from: hallvard:ystad:helpinhand at: 16-Sep-2003 22:34


How about this: http://www.reboltech.com/library/html/http-post.html Hallvard Dixit MeF (21.38 16.09.2003):

 [3/10] from: mfontana7:inwind:it at: 17-Sep-2003 0:39


On Tue, 16 Sep 2003 22:34:11 +0200, Hallvard Ystad <[hallvard--ystad--helpinhand--com]> wrote:
> How about this: > http://www.reboltech.com/library/html/http-post.html > > Hallvard
Thanks, this seems what I was looking for to start. I dodn't know why I have not seen it myself there 8). M&F

 [4/10] from: andreas:bolka:gmx at: 17-Sep-2003 1:35


Tuesday, September 16, 2003, 9:38:33 PM, MeF wrote:
> I have already looked at the docs and example scripts but I have not > found anything that can help me.
Page 12-25 (pdf-page 373) in the REBOL/Core User Guide contains a section on "Posting CGI request".
> I would like to know a way to send data to a web-server as if it > received it from a normal page with a form and using the POST > protocol. > In detail, I want to skip a front page asking for a password interactively > by sending the needed data to the web-server directly through REBOL and so > obtaining directly the second protected page.
read/custom http://page/ [ post "name1=value1&name2=value2" ] or post-data: "name1=value1&name2=value2" read/custom http://page/ compose [ post (post-data) ] -- Best regards, Andreas

 [5/10] from: john-harbaugh:earthlink at: 17-Sep-2003 13:29


The password problem has nothing to do with REBOL, that is a server directory rights issue. I have such a script, considering the permissions are set on the server, and I will send it later. The form sends the POST and the REBOL formats it, writes it to the server, then displays it to the screen, You can do what you want with it from that point. Send me an E-Mail address and I will send the scripts.

 [6/10] from: mfontana7:inwind:it at: 17-Sep-2003 21:13


> The password problem has nothing to do with REBOL, that is a server > directory rights issue.
<<quoted lines omitted: 4>>
> You can do what you want with it from that point. > Send me an E-Mail address and I will send the scripts.
Thanks, but I think tha's not what I'm looking for. I have not Rebol set as a CGI language to process web-server requests, but REBOL has to work as a browser . Only that it is "automatic" in its query and then can format the received page and send them by e-mail. A bit tricky, but may be useful for a simple project I'm thinking about: a REBOL Bot that can be ordered remotely by e-mail and can anser by e-mail as well. If only this Windows driven mass of HW had Arexx! M&F

 [7/10] from: john-harbaugh:earthlink at: 17-Sep-2003 15:22


M&f: What is your server OS?

 [8/10] from: john-harbaugh:earthlink at: 17-Sep-2003 15:19


MEF: My script does that, that is sends the product page as an HTML formatted E-Mail. It is the last step, once I accept the posted product -and hit the send key. I can do several other things with it as well, like send it to an ASP page for more information and entry into an Access database. John

 [9/10] from: mfontana7:inwind:it at: 18-Sep-2003 7:56


On Wed, 17 Sep 2003 15:19:56 -0500, John-Harbaugh <john- [harbaugh--earthlink--net]> wrote:
> MEF: > My script does that, that is sends the product page as an HTML formatted
<<quoted lines omitted: 3>>
> page for more information and entry into an Access database. > John
Ok. Where I can get it? Here my address if you can't use the reply: mailto://[mfontana7--inwind--it] M&F

 [10/10] from: mfontana7:inwind:it at: 18-Sep-2003 7:55


On Wed, 17 Sep 2003 15:22:41 -0500, John-Harbaugh <john- [harbaugh--earthlink--net]> wrote:
> What is your server OS?
You mean my ISP server OS? I don't really know. Here I use WinXP + Opera to get into Internet. Don't know why the From address in the header is screwed. M&F

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