You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jeff Neuenschwander <je...@mixi.net> on 2000/04/18 08:56:46 UTC
http 400 error
What can an http 400 error indicate when calling a servlet?
Just curious. When I call it from another web page, it works fine, but when
I try to call it standalone, I get a 400 error.
Thanks,
Jeff
Re: http 400 error
Posted by Jeff Neuenschwander <je...@mixi.net>.
Great, thanks!
Jeff
----- Original Message -----
From: "Craig R. McClanahan" <Cr...@eng.sun.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, April 18, 2000 11:46 AM
Subject: Re: http 400 error
> Jeff Neuenschwander wrote:
>
> > What can an http 400 error indicate when calling a servlet?
> >
> > Just curious. When I call it from another web page, it works fine, but
when
> > I try to call it standalone, I get a 400 error.
> >
>
> HTTP status code 400 (in servlet parlance,
HttpServletResponse.SC_BAD_REQUEST)
> is supposed to be returned when the syntax of the HTTP request sent by the
> client is incorrect in some fashion. For example, the first line of a
request
> might look something like this:
>
> GET /index.html HTTP/1.0
>
> Tomcat will return an error 400 if the length if this line is too short,
or if
> the request URI does not start with a "/" character.
>
> >
> > Thanks,
> > Jeff
>
> Craig McClanahan
>
>
>
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
>
Re: http 400 error
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Jeff Neuenschwander wrote:
> What can an http 400 error indicate when calling a servlet?
>
> Just curious. When I call it from another web page, it works fine, but when
> I try to call it standalone, I get a 400 error.
>
HTTP status code 400 (in servlet parlance, HttpServletResponse.SC_BAD_REQUEST)
is supposed to be returned when the syntax of the HTTP request sent by the
client is incorrect in some fashion. For example, the first line of a request
might look something like this:
GET /index.html HTTP/1.0
Tomcat will return an error 400 if the length if this line is too short, or if
the request URI does not start with a "/" character.
>
> Thanks,
> Jeff
Craig McClanahan