From html in a given directory, I submit a form. After parsing the form data, I then call RedirectResponse() to redirect to the same file that the form was submitted from. For example. I start with /html/somedirectory/test.htm, and then call RedirectResponse( sock, "test.htm" );
From within Firebug, I see that the post and response seem to look ok.
Post String:
Code: Select all
http://192.168.50.61/mobile/sendcanmsg?byte0=11&byte1=22&byte2=33&byte3=44&byte4=55&byte5=66&byte6=77&byte7=30&canaddr=111
Redirect Request:
Code: Select all
GET /mobile/test.htm HTTP/1.1
Host: 192.168.50.61
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0
Accept: text/html, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://192.168.50.61/mobile/test.htm
X-Requested-With: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Just in case its helpful, I've attached a wireshark capture of the POST request and subsequent redirect request. The request starts with frame 49. Save, then remove the .txt from the file. It wouldn't let me add it as is.
Any ideas? Any help is appreciated.
Thank you!