[2795] in java-interest

home help back first fref pref prev next nref lref last post

Re: URL.getContent() in beta/Netscape

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Fri Oct 13 20:11:19 1995

Date: Fri, 13 Oct 1995 15:00:19 -0700
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: sc@cen.com
Cc: java-interest@java.Eng.Sun.COM


Hi Steve,

> I'm not sure whether this is a problem in my understanding Java or a
> bug in Netscape, so I'll ask here first to make sure what I'm doing
> makes sense.
> 
> I have an applet which wants to execute a CGI script on the server
> from which it was loaded.  For now, it doesn't care what the script
> returns; it just wants run it.  So it does the following:
> 
> 	theURL = new URL(getCodeBase(), theRest);
> 	theURL.openConnection();	// is this even necessary?
> 	Object o = theURL.getContent();
> 
> I used this code in the Alpha 3 HotJava (without the openConnection()
> call) and it worked.  Under Netscape 2.0 beta on Solaris 2.4, nothing
> happens.  getContent() returns null, and the httpd at the other end
> never sees the request, though System.out.println(theURL.toString())
> shows that the URL has been constructed as I expect.
> 
> Should this sequence work in the beta API?  Is this a Netscape bug, or
> is there something else that I need to do?

It should work, but I'm not sure how easy it will be to make it work
in Netscape. I'll make sure it gets addressed. Thanks.

Have fun,

	Arthur van Hoff
	
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post