I have an applet that is currently executing a PERL script on the applet's host machine. The PERL script runs a SQL query against our MySQL database and returns the results over HTTP.
The results are URL Encoded, something like:
I am currently investigating how to parse the returning results. I would rather use an existing class to do this.
There is a class "HTTPRequest" (getParameter method), but it seems to be only available if you are creating a servlet.
My questions are:
1. How do I use this class if I am not creating a servlet?
2. Does anyone know of any other HTTP-parser-type class that I could use?
3. Is there a better way to do this? It bothers me that I will not be able to understand the order of the results or which parameter is being passed without some extensive logic.
Thanks in advance.