POST to CGI
[1/3] from: hallvard::ystad::helpinhand::com at: 27-Sep-2001 21:52
The book talks about CGI POSTs on pp.408-409, but it explains only about
doing POSTs via HTML tags, not how to programatically do an HTTP
POST-request with rebol.
If I'd like to post "favourite-meal" = "cake" to
http://some.server/cgi-bin/food-processor.pl and retrieve the results...
How should I do it? I took a quick look on system/schemes/http/handler, but
got quite confused. A quick code sample, anyone?
~H
[2/3] from: ryanc:iesco-dms at: 27-Sep-2001 14:26
Here is a line from one of my programs that might help you...
read/custom PDF-conversion-URL reduce [
'post rejoin ["url=" pdf "&extract_order=-x&reflow_p=X&clear_p=X"]
]
--Ryan
Hallvard Ystad wrote:
> The book talks about CGI POSTs on pp.408-409, but it explains only about
> doing POSTs via HTML tags, not how to programatically do an HTTP
<<quoted lines omitted: 9>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Ryan Cole
Programmer Analyst
www.iesco-dms.com
707-468-5400
[3/3] from: hallvard:ystad:helpinhand at: 28-Sep-2001 20:36
Ryan Cole skrev (Thursday 27.09.2001, kl. 23.26):
>Here is a line from one of my programs that might help you...
>read/custom PDF-conversion-URL reduce [
> 'post rejoin ["url=" pdf "&extract_order=-x&reflow_p=X&clear_p=X"]
> ]
Thanks, that worked perfectly. I guess 'post is part of some 'read dialect?
Someone said, the other day, that we need a dialect documentation dialect.
I do agree.
~H
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted