GET/POST Gateway

Abstract: This script allows people to have a permanent URI for inadvertantly POST-only resources. It has the side effect of breaking webarch to fix it. Source code.

Some sites use POST on their search forms, making you unable to bookmark or point to the results. This script allows you to circumvent that by doing the POST for you but providing a URI for the result.

For example, if a site uses the following form: <form action="http://example.org/cgi" method="post"><input type="text" name="search" /><input type="submit" /></form> and you wanted to provide a link to the search for "example term", you'd link to /getpost?uri=http://example.org/cgi&search=example+term. Note that if one of the form keys ends with "uri" (case insensitive), you must prefix an underscore: "_uri".

Example (the W3C's RDF Validator actually allows GET too, but POSTs by default).

Todo:

Sean B. Palmer