Asynchronous cgi that returns nothing. Possible? O:-)

Benji York benji_york at cknainc.com
Fri Apr 26 15:22:43 EDT 2002


Fernando Rodr?uez <frr at easyjob.net> wrote in message news:<olvacuoe4oo1aa5gjj6sa4vsimdom3pabv at 4ax.com>...

> This cgi shouldn't return anything
> and shouldn't change the contents of the browser. Is this possible? O:-)  

An excerpt from http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html:

[Status Code] 204 No Content

The server has fulfilled the request but does not need to return an
entity-body, and might want to return updated metainformation. The
response MAY include new or updated metainformation in the form of
entity-headers, which if present SHOULD be associated with the
requested variant.

If the client is a user agent, it SHOULD NOT change its document view
from that which caused the request to be sent. This response is
primarily intended to allow input for actions to take place without
causing a change to the user agent's active document view, although
any new or updated metainformation SHOULD be applied to the document
currently in the user agent's active view.

The 204 response MUST NOT include a message-body, and thus is always
terminated by the first empty line after the header fields.

(end excerpt)

This looks like what you want.

---
Benji York



More information about the Python-list mailing list