Redirect function by POST

Redirect function by POST

by Iban Cardona i Subiela -
Number of replies: 1

Hello,

Is there any method to call Moodle redirect function and create a POST redirect action? I'm using Moodle 2.6.

Best regards!

Average of ratings: -
In reply to Iban Cardona i Subiela

Re: Redirect function by POST

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The answer is No, not just in Moodle, but in the HTTP protocol which all web sites use.

The only work-around it to use javascript: Make the first HTTP request return the HTML of a form with hidden form fields for all the POST data, and some java-script to auto-submit the form onload.

Average of ratings: Useful (1)