in reply to Re: Question: Send a chunk of XML to a server
in thread Question: Send a chunk of XML to a server

s/convention/CGI protocol/
  • Comment on Re^2: Question: Send a chunk of XML to a server

Replies are listed 'Best First'.
Re^3: Question: Send a chunk of XML to a server
by ikegami (Patriarch) on Nov 09, 2009 at 23:20 UTC
    No, derby is correct. The CGI protocol is agnostic to type of data being posted. It doesn't have to be form data. That's why it provides a means of specifying the type of the content being posted (env var CONTENT_TYPE).
Re^3: Question: Send a chunk of XML to a server
by derby (Abbot) on Nov 09, 2009 at 21:59 UTC

    There's nothing in the CGI specification that says a form submission must be a POST or that *all* POST submissions are forms. Am I missing something AM?

    -derby
      Kinda. There are no forms on the server, just data. POST is not a "safe method", its used to change something on the server. GET is a "safe method", its only used to query the server, to retrieve data from server. All this is part of the standard protocol called CGI. It is not just convention, its the rules.
        The choice method to use for requests without side-effects (GET) and requests with side-effects (POST) is indicated by the HTTP protocol. It has nothing to do with the CGI protocol or the post to which you replied.