Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: handing absolute URL in post request in tomcat

Ankit Doshi

2003-10-17

Replies:

Yes, sorry I forgot to mention the tomcat version. I am running Tomcat
3.2.4. Is there a connector available for this version as well?

On Fri, 17 Oct 2003, Bill Barker wrote:

> I'm probably one of the very few people to catch this, but you have
> forgotten to mention that you are running Tomcat 3.x.x. None of the
> released versions of Tomcat 3 support HTTP/1.1 (except running behind
> Apache/IIS/SunOne). If you happen to be running 3.3.x, then you could
> upgrade to the CoyoteConnector2 in the nightly (to get a true HTTP/1.1
> Connector), and all should be fine.
>
> "Ankit Doshi" <ankit@(protected)
> news:001d01c39479$ddeebc30$b46fa8c0@(protected)...
> Hi,
>
> I am running my tomcat on 8999 port and I am not using apache. I have
> created servlet named TestServlet in context test.
> Now if I telnet to my server on port 8999 and then say POST
> /test/servlet/TestServlet
> it calls the servlet correctly.
> but if I send an absolute URL in the POST request instead of relative URL
> like
> POST http://localhost:8999/test/servlet/TestServlet
> then it gives me 404 error in tomcat like
> 404 R( + http:/localhost:8999/test/servlet/TestServlet + null) null
>
> I have configured this servlet on my tomcat and some client is going to
> invoke this servlet with the given URL. The client here is an automated
> process, which I assume is written in C, which just opens socket on the 8999
> port on my server and in post, again gives the absolute URL. Now why do this
> automated client program invokes absolute URL is not clear, but I assume he
> might be doing this to avoid some processing at his end.
> If I use apache, then apache would handle this kind of URL, but I have some
> limitations at my end, and cannot use apache.
>
> How can I configure the tomcat to accept this kind of absolute URL in post?
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.