* [Caml-list] The CGI library
@ 2003-06-08 11:43 amata
2003-06-13 7:34 ` Jean-Christophe Filliatre
0 siblings, 1 reply; 2+ messages in thread
From: amata @ 2003-06-08 11:43 UTC (permalink / raw)
To: caml-list
Hi list.
I´m using the CGI library (developed for Jean-Christophe Filliâtre)
in order to receive arguments in a CGI application. I use the
function "parse_args" for parse the CGI arguments.
My problem is; I have a CGI application that must send data to
another CGI. How can I send arguments to another CGI? Is this possible
with the CGI library? What function should I use?
Thank you very much.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] The CGI library
2003-06-08 11:43 [Caml-list] The CGI library amata
@ 2003-06-13 7:34 ` Jean-Christophe Filliatre
0 siblings, 0 replies; 2+ messages in thread
From: Jean-Christophe Filliatre @ 2003-06-13 7:34 UTC (permalink / raw)
To: amata; +Cc: caml-list
> I´m using the CGI library (developed for Jean-Christophe Filliâtre)
> in order to receive arguments in a CGI application. I use the
> function "parse_args" for parse the CGI arguments.
>
> My problem is; I have a CGI application that must send data to
> another CGI. How can I send arguments to another CGI? Is this possible
> with the CGI library? What function should I use?
There are two possible answers:
1. either you just want your first CGI to produce a web page
containing a link to the second CGI with arguments; then the URL
contains the CGI arguments, in such a way:
http://www.blah.org/second.cgi?arg1=value1&arg2=value2&...
where strings (arguments and values) must be encoded using
Cgi.encode.
2. or you want to call the second CGI when running the first one; then
you must set the according environment variables:
- REQUEST_METHOD="GET"
- QUERY_STRING="arg1=value1&arg2=value2&..."
before calling the second CGI (where strings are also encoded using
Cgi.encode.) You may use Unix.create_process_env to do this (or
Unix.execvpe if you don't need to return to the first CGI)
Hope this helps,
--
Jean-Christophe Filliâtre (http://www.lri.fr/~filliatr)
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-13 7:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-08 11:43 [Caml-list] The CGI library amata
2003-06-13 7:34 ` Jean-Christophe Filliatre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox