Hacker, author, trainer
Technorati Profile [technorati.com]
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.
Common mistake (Score:2, Interesting)
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
How many html coders (of the type to need nms) do you know that have read the http specs ? Perhaps the error message could explain a bit about why it is bad or link to more detail on the nms website.
Re:Common mistake (Score:3, Informative)
I'd say tone it way down, with a pointer to an explanation of "why" online. Just explain "what."
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re:Common mistake (Score:2)
formtag wouldn't have anactionattribute at all -- at least, the error message needs to address that possibility.