Discussion:
[tornado] Send a parameter to other request
reganto
2018-10-10 18:31:11 UTC
Permalink
In laravel we can send a parameter to other request with
redirect('url')->withInput(ParameterName).in Tornado exist such facility?
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ben Darnell
2018-10-11 01:21:57 UTC
Permalink
I think what you want is something like
self.redirect(tornado.httputil.url_concat('url',
ParameterName="something"))

-Ben
Post by reganto
In laravel we can send a parameter to other request with
redirect('url')->withInput(ParameterName).in Tornado exist such facility?
--
You received this message because you are subscribed to the Google Groups
"Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
reganto
2018-10-12 06:54:21 UTC
Permalink
Thank you Ben.
But i want to send parameters in POST method ==>
self.redirect(tornado.httputil.url_concat('url', ParameterName='sth')) send
parameters to other request in query string.
Post by Ben Darnell
I think what you want is something like
self.redirect(tornado.httputil.url_concat('url',
ParameterName="something"))
-Ben
Post by reganto
In laravel we can send a parameter to other request with
redirect('url')->withInput(ParameterName).in Tornado exist such facility?
--
You received this message because you are subscribed to the Google Groups
"Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ben Darnell
2018-10-12 13:00:01 UTC
Permalink
In HTTP, redirects always perform a GET. You can't "redirect" to a POST;
you have to serve an HTML page with javascript that will perform a form
submission.

-Ben
Post by reganto
Thank you Ben.
But i want to send parameters in POST method ==>
self.redirect(tornado.httputil.url_concat('url', ParameterName='sth')) send
parameters to other request in query string.
Post by Ben Darnell
I think what you want is something like
self.redirect(tornado.httputil.url_concat('url',
ParameterName="something"))
-Ben
Post by reganto
In laravel we can send a parameter to other request with
redirect('url')->withInput(ParameterName).in Tornado exist such facility?
--
You received this message because you are subscribed to the Google
Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
reganto
2018-10-13 07:08:26 UTC
Permalink
Thank you for response
Post by Ben Darnell
In HTTP, redirects always perform a GET. You can't "redirect" to a POST;
you have to serve an HTML page with javascript that will perform a form
submission.
-Ben
Post by reganto
Thank you Ben.
But i want to send parameters in POST method ==>
self.redirect(tornado.httputil.url_concat('url', ParameterName='sth')) send
parameters to other request in query string.
Post by Ben Darnell
I think what you want is something like
self.redirect(tornado.httputil.url_concat('url',
ParameterName="something"))
-Ben
Post by reganto
In laravel we can send a parameter to other request with
redirect('url')->withInput(ParameterName).in Tornado exist such facility?
--
You received this message because you are subscribed to the Google
Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...