Sometimes I want to just give up on nms. It's all very well producing these programs for people to use, but then you have to support them. Here's an example. Today, I got an email (to me personally, not to the support mailing list - which is a whole other rant) from someone who had got the following error message when configuring FormMail:
Error: GET request
The form at [url removed to save embarassment] fails to specify the POST method, so it would not be correct for this script to take any action in response to your request.
If you are attempting to configure this form to run with FormMail, you need to set the request method to POST in the opening form tag, like this:
<form action="/cgi-bin/FormMail.pl" method="post">
Apparently that message was unclear and they couldn't work out how to fix the problem.
I'm struggling to work out how to make that error message any clearer.
In other news, I wasted some time this morning explaining to someone why:
%hash = localtime(time);
is unlikely to do anything useful.
We (the programmers) all know why a GET request that is non-idempotent is bad but a lot of books on html seem to propogate the notion that you can use GET and POST interchangably except when
Error: GET request not permitted
You should never use GET when asking a webserver to do something
like submitting an email or updating a database. The url can be cached by a users browser or by a web proxy and the results may not be what you expect.
Learn more about this at http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1 or on the nms website at [insert url here].
To configure your form to run with FormMail, you need to set the request method to POST in the opening form tag, like this:
<form action="/cgi-bin/FormMail.pl" method="post">
Re:Common mistake
jdavidb on 2002-10-09T14:33:36
I'd say tone it way down, with a pointer to an explanation of "why" online. Just explain "what."
Your HTML form says something like this:
<form action="/cgi-bin/FormMail.pl" method="get">
This is an error; please see http://...
Change it to something like this:
<form action="/cgi-bin/FormMail.pl" method="post">Re:Common mistake
vsergu on 2002-10-09T21:59:57
I think it's more likely that the erroneousform
tag wouldn't have anaction
attribute at all -- at least, the error message needs to address that possibility.