Re: Using POST to send bitmap image with Java



Lew 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.)

So Apache *does* implement POST. It's the non-existent script that is failing, not Apache Web Server. Adding that script is no change to Apache.

Leaving open the question - are there any real-world web servers that do not implement POST?

Not to go Bill Clinton here, but it depends on what your definition of "implement" is.

Unless set to reject them, all 1.1 http servers will not reject any 1.1 method (POST, PUT, DELETE, etc.) within the request. The question is "what next".

In the case of GET, it returns the content of the target page if it exists. In the case of all other methods, the server passes the request onto the designated handler, treats the request as a GET or returns a not found error.

Long story short, a successful GET request can be made using only the web server. For all other methods, POST and PUT included, a request can not succeed unless a handler has been added to the web server. If the handler properly exists, the web server passes the request and response between the handler and client.

If the last two sentences above meets your definition of "implement", the answer to your original question is "all 1.1 http servers implement all 1.1 methods POST and PUT included".

--
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
.



Relevant Pages

  • Re: Using POST to send bitmap image with Java
    ... In the case of Apache, it seems to get treated as a GET. ... In the case of all other methods, the server passes the request onto the designated handler, treats the request as a GET or returns a not found error. ... a successful GET request can be made using only the web server. ...
    (comp.lang.java.programmer)
  • Re: Web host has PHP 5 "as a module"...whats that?
    ... The Apache web server can process a scripting language in two different ... crash Apache -- CGI isolates the interpreter as a separate process, ... itself for every request. ...
    (comp.lang.php)
  • Re: PHP and SCRIPT_NAME variable
    ... would be limited by the size of data allowed withing GET request... ... suppose) depends on the web server being used. ... quick tests with Apache 1.3.x and Apache 2.0.x, ...
    (Vuln-Dev)
  • Re: [OT] minimalist web server
    ... Maybe I found what I'm looking for: cheetah, a web server that is 600 ... else than return a fixed static page for every request. ... I run apache which has an empty page for 404 errors so ... afraid if there is a security hole in netcat I might be screwed. ...
    (comp.lang.python)
  • modperl and apache handlers
    ... I have written a simple mod-perl handler that handles all html request. ... made (like apache does with imagine formats (.gif, ...
    (comp.lang.perl.modules)