I can not get POST data after redirect
Added by arki.chen almost 12 years ago
Dear All,
I have a question. To use hackbar to post data. I use the following lighttpd.conf
$HTTP["host"] =~ "^(.*)$" {
url.redirect = (
"^/test/request_connection(.*)" => "http://%1/test/RequestCmdApi.cgi$1" ,
"^/test/status/(.*)$" => "http://%1/test/remote.cgi$1" )
}
I use Firefox browser and install Hackbar. To select the option of Enable Post data. The URL is "http://192.168.1.47/test/request_connection" and post date is "user_id=00:13:D4:44:57:1D".
The URL above will be redirect to RequestCmdApi.cgi after pressed <Execute> button.
But I use the code "int contentLength = atoi(getenv("CONTENT_LENGTH"));" in RequestCmdApi.cgi file , The contentLength is zero. So *.cgi did not get anything.
Do anybody know this question? Please let me know your idea.
Thanks for your help.
BR,
Arki
Replies (2)
RE: I can not get POST data after redirect - Added by arki.chen almost 12 years ago
Dear darix,
Thanks for your reply.The POST data had been received.
Thanks, again.
BR,
Arki