perl - Are there any problems handling a POST request as a GET request on the server -
In an effort to resolve this question, I posted in this question:
So far, the only successful solution to this problem is to think in the environment that the request was a GET. I convert it to POST parameters in a query string, by saving that string in the default environment variable, then changing the environment variable, which tells the server what the request is using for this request.
$ ENV {'QUERY_STRING'} = $ long_parameter_string '' Amp; ' . $ ENV {'QUERY_STRING'}; $ ENV {'REQUEST_METHOD'} = 'GET'; System {$ perl_exec} $ cgi_script;
I am misleading the CGI module to read from the STRYN instead of STDIN in the QUERY_STRING environment variable, which will try to read it to the POT requests.
This method still works, but I am worried about unexpected results.
My question is, do you see any potential problems on this?
You encounter problems with large submissions and file uploads because GET size limit is much lower than POST If you are talking about the approximate small amount of data, then you should be okay.
Comments
Post a Comment