Re: getDocumentRoot from URL Connection
Wednesday, June 27, 2001 06:49 PM
Um, CGI environment variables are set by the web server
for use by CGI programs on that web server.
They are not sent over the net.
So I don't understand why you say you need to
get this variable from a URLConnection.
You can't get this variable from the client side (this has
nothing to do with Java!), and from the
server side 1) you probably shouldn't be using Java for
CGI, use servlets instead, and 2) URLConnection
has nothing to do with the web server configuration, hence
cannot be used to determine the value of this property.