I have a php script that passes a value to an http://something…./wsgi.py page which computes and returns a value.
I do not want to display this .py page. Instead, I want to call another php page along with the value computed by the python page.
Any pointers on how to proceed?
An elegant solution to this problem would be to return an HTTP redirect response from the Python script. With such a solution, your browser doesn’t need to load and display the HTML from the Python script, making the redirection more transparent to the user.
A code snippet creating HTTP redirect with WSGI follows: