I made this simple class today as a replacement for a get-only getParameter routine I used earlier. This class should handle both get- and post-requests.
My "documentation" (something new I've been trying out) of the class:
>> Class in a text-file
(the tabs are a little off in Notepad/Wordpad, but should look correct in DD)
>> Simple demoapp
Update, 01.07.2009: A small codechange to support multi-value requests. For instance from a form with checkboxes.
Update, 30.05.2008: There was a bug in the class. If you had a parameter containing "=", the parameter value would be cut off before =. The class is updated with the fix (demoapp not updated).
Update, 25.03.2008: I've updated the class so that it should handle request_content above 64k. Read more here.
Update, 13.12.2007: I updated the class with a method to print a html-report of the request, using the docToHTML-procedure in the previous post.
Update, 25.09.2008: Added functionality to fetch cookies from a request.