Hi,
I'm trying to read an HTML file from the server in a servlet. This is what
I'm doing from a method called after doPost():
URL u = new URL("http://" + req.getServerName() + "/wms/update.htm");
log("before URL to open = " + u.toString());
URLConnection uc = u.openConnection();
log("after URL to open");
BufferedInputStream bis = new BufferedInputStream(uc.getInputStream());
log("after openStream");
byte b[] = new byte[bis.available()];
bis.read(b);
out.print(b);
out.flush();
out.close();
Basically it doesn't get to the "after openStream". It dies on the
getInputStream(). This is the error I get back:
unknown protocol: https
This is a protected URL, but not https. I was hoping I could read an HTML
file on the server in the docs directory. Does anyone have any ideas why I
can't?
Thanks,
Gary
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html