[2791] in java-interest
URL.getContent() in beta/Netscape
daemon@ATHENA.MIT.EDU (sc@cen.com)
Fri Oct 13 18:43:16 1995
From: sc@cen.com
Date: Fri, 13 Oct 1995 16:17:12 -0400
To: java-interest@java.sun.com
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?
thanks in advance for any info,
-steve
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com