You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Calvin ChunChung Li <ca...@oracle.com> on 2000/07/19 01:03:55 UTC
Absolute URI ...
Hi...
Does Tomcat support absoulte URI ?
I used telnet post to try to invoke the servlet in tomcat ...
i can invoke it if i do something like this
telnet <my machine> <port>
POST /examples/servlet/myservlet HTTP/1.0
but i will get http 400 invalid request if i do somthing like that
..
telnet <my machine> <port>
POST http://<my machine>:<port>/examples/servlet/myservlet
HTTP/1.0
I will appreaciate any ideas ...
RE: Absolute URI ...
Posted by Mike Bremford <mi...@paperx.com>.
Hi Calvin
Assuming tomcat is a normal HTTP server, to specify which host you want try
this:
POST /examples/servlet/myservlet HTTP/1.0
Host: mymachine.com
See the HTTP spec for more info - ftp://ftp.isi.edu/in-notes/rfc2616.txt
Cheers.... Mike
-----Original Message-----
From: Calvin ChunChung Li [mailto:calvin-chun-chung.li@oracle.com]
Sent: 19 July 2000 00:04
To: Tomcat-User@Jakarta. Apache. Org
Subject: Absolute URI ...
Hi...
Does Tomcat support absoulte URI ?
I used telnet post to try to invoke the servlet in tomcat ...
i can invoke it if i do something like this
telnet <my machine> <port>
POST /examples/servlet/myservlet HTTP/1.0
but i will get http 400 invalid request if i do somthing like that
..
telnet <my machine> <port>
POST http://<my machine>:<port>/examples/servlet/myservlet
HTTP/1.0
I will appreaciate any ideas ...