Re: Using POST to send bitmap image with Java



Dave Miller wrote:
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
.



Relevant Pages

  • Re: Return jsp paramaters to another machine
    ... What I want to do is connect many web servers (apache) to one web ... must be in the tomcat machine. ... > HTML in JSP files. ...
    (comp.lang.java.programmer)
  • Re: preferred web environment
    ... > considered EOL, as is Tomcat 4.x. ... There are good reasons to stick with apache 1.3.x. ... if you need an apache module that Tomcat doesn't support, ... JBoss has it's own HTTP server written in Java, ...
    (RedHat)
  • Re: Using POST to send bitmap image with Java
    ... But POST is present in all major web servers. ... I wouldn't know one if you dropped it on my foot - but Apache and Tomcat only handle POST if you write a handler. ... Both Tomcat and Apache support POST out of the box in the ...
    (comp.lang.java.programmer)
  • Re: preferred web environment
    ... minimum Apache 2.0 and Tomcat 5. ... improvements in Apache 2.x over 1.3, and support for application servers ... considered EOL, as is Tomcat 4.x. ... If you are looking to support a J2EE and EJB capable environment, ...
    (RedHat)
  • Re: jsp to asp.net
    ... web servers to run under. ... IIS and Apache (Tomcat) will have to run side-by-side. ... IIS does not support JSP, and Apache does not support .Net. ...
    (microsoft.public.dotnet.languages.csharp)