On 11-09-2010 09:22, Angus Robertson - Magenta Systems Ltd wrote:
What is the purpose of the OPTIONS method?
From http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
"The OPTIONS method represents a request for information about the
communication options available on the request/response chain identified
by the Request-URI. This method allows the client to determine the
options and/or requirements associated with a resource, or the
capabilities of a server, without implying a resource action or
initiating a resource retrieval. "
I'm using to enable CORS (Cross-Origin Resource Sharing)
http://dev.w3.org/2006/waf/access-control/
Requests for mime types other than text/plain, must be "preflighted",
and browsers use the OPTIONS method request to execute this "preflight"
query.
http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/
https://developer.mozilla.org/En/HTTP_access_control
Rui
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be