Re: Question about RedirectResponse()...
Posted: Thu Aug 01, 2013 11:33 am
Now that I'm back working on this, I tried it again, and it seems to be working as expected...if the starting page submitting the post data is in the top level directory. If I have it in a subdirectory, and then attempt to redirect to another file in the subdirectory, it fails.
For Example:
normal/test.htm <--- Contains for that submits post data
normal/test1.htm <=== Target for Redirect after handling post data.
This is how I have it setup now and I'm getting the browser (firefox), stuck with "Problem loading page" / "Connection was reset". The ip address of the netburner is 192.168.50.61, and the address in the browser when everything stops is: http://192.168.50.61/normal/sendcanmsg
This got me thinking... I'm not handling normal/sendcanmsg in my postHandler() function. Thus, I changed my handler to look at NORMAL/SENDCANMSG and it worked. Then its working directory was /normal, and thus I could set my redirect to send the redirect to test1.htm, without anything else in the path.
So, moral of the story is, take a few days away, look at it differently and sometimes things just make more sense...
Problem solved, and hopefully this post helps someone else down the line.
For Example:
normal/test.htm <--- Contains for that submits post data
normal/test1.htm <=== Target for Redirect after handling post data.
This is how I have it setup now and I'm getting the browser (firefox), stuck with "Problem loading page" / "Connection was reset". The ip address of the netburner is 192.168.50.61, and the address in the browser when everything stops is: http://192.168.50.61/normal/sendcanmsg
This got me thinking... I'm not handling normal/sendcanmsg in my postHandler() function. Thus, I changed my handler to look at NORMAL/SENDCANMSG and it worked. Then its working directory was /normal, and thus I could set my redirect to send the redirect to test1.htm, without anything else in the path.
So, moral of the story is, take a few days away, look at it differently and sometimes things just make more sense...
Problem solved, and hopefully this post helps someone else down the line.