🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8791

Re: applet using cgi

#8791
From: Joi Ellis [TeamB]
Date: Mon, 26 Feb 2001 22:03
25 lines
1585 bytes
teiluj <hkl@eie.polyu.edu.hk> wrote:
> hi all,
> i wrote an applet.  the applet will call a cgi using the following line

> url=new URL("http://abc.com/cgi-bin/test?login=a&password=b");
> .
> .
> .
> getAppletContext().showDocument(url, "_balnk");

> actually, it works, however, the cgi argument, "?login=a&password=b", is
> also shwon in the browser.
> could anyone here please tell me what to do to hide the cgi argument in the
> browser when using the cgi.

Assuming there isn't something about applets that breaks this (Cause I
don't do applets and wouldn't know...)

Make your test script use POST instead of GET, and send the variables
through STDIN.

-- 
Joi Ellis (TeamB) 
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Technical Details
Message-ID: <97ejs9$mo53@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsgate.cistron.nl!skynet.be!newsfeed01.tsnz.net!bornews.borland.com!not-for-mail
References: <3a9a886f_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b88f7487494f4726
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-02-26 14:36:03 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsgate.cistron.nl!skynet.be!newsfeed01.tsnz.net!bornews.borland.com!not-for-mail
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: applet using cgi
Date: 26 Feb 2001 22:03:53 GMT
Organization: Another Netscape Collabra Server User
Lines: 25
Message-ID: <97ejs9$mo53@bornews.inprise.com>
References: <3a9a886f_1@dnews>
NNTP-Posting-Host: linux.aravox.com
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))