Redirecting after POST processing
Posted: Tue Sep 15, 2015 4:27 pm
Hi,
running CMSMadeSimple 1.11.9, I'm having trouble grasping what happens to POST requests.
The site has the multidomain module and - as far as I can tell from other posts - the standard rewrite rules turned on, and this all seems to be working perfectly. When a POST request comes in for a given URL, it get rewritten OK, and in fact the template gets rendered and embedded user tags get executed (these tags generate an email that does get sent). However, what gets returned to the client browser is not 200 status and the result of all that work, but instead a 301 redirect to the same URL, that causes the browser to execute a GET.
The reason I care about this is that the processing of the POST request takes advantage of the POST variables to not only send an email, but to generate a page that says something like "thanks for the input", and this is now getting lost.
Is there any way to control this redirecting behaviour? I'd rather not rewrite the whole thing using a Form building plugin or something as, apart from this detail, it all works perfectly.
Regards
- Dave
running CMSMadeSimple 1.11.9, I'm having trouble grasping what happens to POST requests.
The site has the multidomain module and - as far as I can tell from other posts - the standard rewrite rules turned on, and this all seems to be working perfectly. When a POST request comes in for a given URL, it get rewritten OK, and in fact the template gets rendered and embedded user tags get executed (these tags generate an email that does get sent). However, what gets returned to the client browser is not 200 status and the result of all that work, but instead a 301 redirect to the same URL, that causes the browser to execute a GET.
The reason I care about this is that the processing of the POST request takes advantage of the POST variables to not only send an email, but to generate a page that says something like "thanks for the input", and this is now getting lost.
Is there any way to control this redirecting behaviour? I'd rather not rewrite the whole thing using a Form building plugin or something as, apart from this detail, it all works perfectly.
Regards
- Dave