Redirect as post?

Hi,

How can I make sure the redirect should act as a “POST” method and not
as
“GET”?

Thanks, Hari


View this message in context:
http://www.nabble.com/redirect-as-post--tf1884434.html#a5151391
Sent from the RubyOnRails Users forum at Nabble.com.

Hi,

I am in no way an expert, yet to my knowledge a redirect cannot be
generated by a server so that the HTTP clients generate a POST. From
the HTTP specification a redirect is only a URL, and a browser will
always generate a GET for a URL not a POST.

The only way to have parameters in the URL is to encode them using
the & symbol and the ?.

If you ever find a way to generate a POST I would be interested to
know how.


Yannick Koehler

2006/7/3, Nara H. [email protected]:

Hi Yannick,

You are right. I too thought from a redirect I will not be able to make
a
post.

I was confused because in my log I saw the following line:
127.0.0.1 - - “POST /h/login HTTP/1.1” 302 104

But this is from the login form and not part of redirect. I have to
rethink
how to add to my list if the user is not logged in.

_Hari

View this message in context:
http://www.nabble.com/redirect-as-post--tf1884434.html#a5152369
Sent from the RubyOnRails Users forum at Nabble.com.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs