POST requests are actually GETs
by Christopher Hill on 30th June, 2007
I found out a pretty interesting, and slightly strange, feature of the HTTP protocol today. When submitting a form as a POST request, if you set the action to the targeted files folder name without the trailing slash it submits the form as a GET request—this caused me to scratch my head over a script for a couple minutes.
Try it for yourself.
Comment posting guide
Your real name will be displayed as the author of the post. Real names are preferred, both first and second names, but nicknames/alter-egos are permitted. Any comments with the author name whose primary aim is to promote their website, and/or company will be removed.
If you supply a website URI then your real name will be clickable to that site. Only one sub-directory is permitted; e.g. http://www.example.org/directory.
Accepted comment input
- <strong>…</strong>
- <em>…</em>
- <blockquote>…</blockquote>
- <tt>…</tt>
- <a href="…">…</a>
- <code>…</code>
1 Jonathan wrote
5th July, 2007
Heh, that is actually pretty interesting. Thanks.