How do you open a cgi script in a java applet
I am currently doing this
URL url = new URL("file://my_directory_path/script?param");
Thanks for your help
--
|||||
(* *)
--------------o0O (_) O0o-------------
___ ___ ___
/ / / / / Brent Cameron
/--/ / /__/ br...@cs.uq.oz.au
/__/ /__ / \ C.S. Dept U.Q.
--------------------------------------
--
|||||
(* *)
--------------o0O (_) O0o-------------
|How do you open a cgi script in a java applet
|
|I am currently doing this
|
|URL url = new URL("file://my_directory_path/script?param");
Err, no. CGI is run by the server. What you'd need to do is
install an HTTPd server on your machine, then use a URL like
"http://localhost/cgi-bin/~yourname/script?param"
Johnathan Mark Smith
smi...@walrus.com
Staten Island Online http://www.walrus.com/~smithj/
Staten Island Java(tm) Group http://www.walrus.com/~smithj/java
Johnathan Mark Smith http://www.walrus.com/~smithj/web
*-----------------------------------------------------------*
Brent Cameron <br...@cs.uq.edu.au> wrote in article
<51d007$q...@miso.cs.uq.edu.au>...
>
> How do you open a cgi script in a java applet
>
> I am currently doing this
>
> URL url = new URL("file://my_directory_path/script?param");
>
You can POST with only URL and URLConnection. Best way ... well there is
a benefit in not relying on classes made by others.
I used to want to have an example of how *EXACTLY* you could POST from
an applet but I couldn't find one. So I spent too many hours on
reinventing the wheel *AND* published what I found. So visit my drab
page on dynamic compilation on-th-fly of Java code (which incorporates
POSTing) at http://www.prosolvia.se/People/stefana/ClassLoad.html
/StefanA
--
/ _| |___ __ _ _ ___ Stefan Andersson Phone: +46 31 703 51 21
| | | |_ \/ _| | | __\ Prosolvia Clarus AB Fax: +46 31 703 51 20
| |_| | _ | | | | |__ | Gårdavägen 1 ste...@clarus.se
\___|_|___|_| \___/___/ S-412 50 Göteborg, SWEDEN http://www.clarus.se