Re: Using POST to send bitmap image with Java
- From: Dave Miller <nonregistered@xxxxxxxxxxxx>
- Date: Sat, 31 May 2008 19:12:36 GMT
Arne Vajhøj wrote:
Dave Miller wrote:You're right, we are saying the same thing - they won't reject a POST but without a handler they won't do anything with it either. In the case of Apache, it seems to get treated as a GET. (Just for sport I just tried to POST to an html page and got the page itself returned.)Arne Vajhøj wrote:s0suk3@xxxxxxxxx wrote:On May 30, 6:44 pm, Arne Vajhøj <a...@xxxxxxxxxx> wrote:Not all web servers support or is configured to allow PUT,
while POST is supported by all web servers.
Not necessarily. An HTTP compliant server is only required to
implement GET and HEAD; all other methods are optional.
That is what the HTTP 1.1 spec says.
But POST is present in all major web servers.
Apache, IIS, Tomcat etc..
I'm confused as to what you mean by "present". I can't speak to IIS - I wouldn't know one if you dropped it on my foot - but Apache and Tomcat only handle POST if you write a handler. If you know differently, please post the reference - I've spent a fair amount of time in both sets of docs and I've never seen "how to (natively)" in either.
I think we have a terminology problem here.
Both Tomcat and Apache support POST out of the box in the
sense that they accept the request and pass it on.
But you need to post to something. And even though you can
technically post to a HTML page, then there are not much
point.
It only makes sense if the post is to some code: servlet,
PHP, CGI script whatever.
Arne
--
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
.
- Follow-Ups:
- References:
- Using POST to send bitmap image with Java
- From: Dexter
- Re: Using POST to send bitmap image with Java
- From: Dave Miller
- Re: Using POST to send bitmap image with Java
- From: Kenneth P. Turvey
- Re: Using POST to send bitmap image with Java
- From: Arne Vajhøj
- Re: Using POST to send bitmap image with Java
- From: s0suk3
- Re: Using POST to send bitmap image with Java
- From: Arne Vajhøj
- Re: Using POST to send bitmap image with Java
- From: Dave Miller
- Re: Using POST to send bitmap image with Java
- From: Arne Vajhøj
- Using POST to send bitmap image with Java
- Prev by Date: Concurrency and Performance
- Next by Date: Re: html, applet & jar
- Previous by thread: Re: Using POST to send bitmap image with Java
- Next by thread: Re: Using POST to send bitmap image with Java
- Index(es):
Relevant Pages
|