"Craig R. McClanahan" wrote:


> It's not clear from your description how it is really set up, but why can't
> you forward CGI requests back to the server the same way you forward file
> requests?  Or are you actually serving the files yourself?

I do a get context, and then getservlet("file") and make it do the work
for me.  I know that this has been deprecated, but the new sdk does not
give me anything that I really need ( AFAIK ) so I'm holding off on
upgrading.

> If your app is grabbing the incoming requests before the web server ever sees
> them, one easy approach would be to build a java.net.URLConnection and talk to
> the web server itself (on a private port that is blocked from external
> access), as if you were the client.  There are some simple examples of this in
> the Java Language Tutorial on Javasoft's web site.  You will probably need
> something a little more complex to deal with POST requests, and including all
> the headers you received from the client, but it is certainly possible.

Yeah, that's what I figured I was going to have to do.

It does not sound like it would be too painful, and it seems that I
don't have a choice based on what Costin wrote in another reply -
apparently he tried to use RD to pass stuff to cgi and it did not work
right.

Alfonso.

___________________________________________________________________________
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

Reply via email to