"Evertjan." <> writes:
> Eric Bednarz wrote on 26 jan 2010 in comp.lang.javascript:
>> I read that
>
> my sentence?
The OP’s question:
| Is there a way to know if the current page is a result of a get or
| post?
>> as wanting to know the request method, and I would think
>> that a HTTP server cannot resolve a resource and send response headers
>> without knowing that.
>
> What HTTP-server
I don’t know which HTTP server the OP uses.
> What Resource?
The resource that tentatively wants to know if it is a result of a GET
or POST request.
> Why should a server without serverside programming ability [if that is what
> you mean by HTTP-server],
By HTTP server I mean a server that services HTTP requests.
> do anything with the POST content of the request
> header?
¿Que?
>> and send response headers without knowing that.
>
> The request querystring has no special request or response headers.
I think that this might be a pretty silly discussion.
> The POST content is in the request header,
I thought that POST data is send in the message body of the request.
> not in the response header.
I should better just have written ‘a response’.
The request method is stated in the request header, and is hopefully
accessible by server-side script (e.g. by the already mentioned
REQUEST_METHOD environment variable). Both response header and message
body may or may not depend on it.