[5483] in java-interest
Getting URLs in Java under Netscape
daemon@ATHENA.MIT.EDU (Dan Zigmond)
Mon Feb 12 16:12:02 1996
Date: Mon, 12 Feb 96 11:39:23 PST
From: djz@siren.com (Dan Zigmond)
To: java-interest@java.sun.com
We have some Java code that intereacts with some existing server software by
creating URLs poiting to CGI scripts. These scripts in turn send their results
back to the Java client by building HTML pages with the content type
"text/plain".
This scheme worked fine with the appletviewer, but Netscape's Java runtime
doesn't seem to understand the "text/plain" content type. We can (I believe)
still open URLs to GIF images, but these plain text pages cause an exception
when we try to call the method getContent on the URL.
Is there a standard way to define a new content type for URLs so that we can
guarantee that the types we use will always be present in a given browser
environment? I assume "text/plain" is about the simplest one to implement so it
presumably wouldn't be difficult to provide a definition for browsers that don't
already have one. But we don't know what the interface is to the URL-related
classes, and whether it has been standardized in such a way as to make this
possible across platforms.
I hope this question is reasonably clear. We'd certainly appreciate any help on
this. The only other alternative we've thought of is to open the URL manually,
by essentially re-implementing HTTP. But this seems like an awful lot of work
when all we really want to do is introduce a new content type to the existing
implementation (which is probably not a very usual problem).
Dan Zigmond
--------------
Dan Zigmond
Siren Software
djz@siren.com
415-617-0590
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com