RE: Re: Re: redirect with get from post

2013-04-18 Thread Adam Mc
Jerome,

Thanks, that seems to make sense with the status codes.  So, by changing the 
status codes upon a redirect after POST, that should work.

-Adam

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053529


Re: Re: redirect with get from post

2013-04-17 Thread Jerome Louvel
Hi Adam,

Thanks for the cool feed-back on RF!

As far as I know, HTTP redirection doesn't let you explicitely specify the
HTTP method to use for the target URI.

Looking more closely at the HTTP redirection statuses:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3

it does appear that status code 303 (and potentially 302) do change the
method from POST to GET automatically! It should therefore work with RF as
expected.

Best regards,
Jerome
--
http://restlet.org
http://twitter.com/#!/jlouvel



2013/4/17 Adam Mc a...@cs.miami.edu

 Jerome,

 thanks for your reply.  Yes, I was not aware of the html redirect, as I
 have always used server side.  I suppose that would work, but it does seem
 that serverside is a more recommended method.

 My pattern is that an HTML FORM submits a POST, and depending on the
 circumstance, issues a redirect.  This pattern always worked fine using
 servlets. Switching to Restlet caused a bit of a problem in this area as it
 was forcing a POST redirect.

 Too bad we can't designate the redirect method.  Is there something in
 REST or HTTP that dictates against changing methods on a redirect?

 Regardless, I have found Restlets to be a great framework and I am
 currently in the process of switching some major code base over to the
 framework.

 Thanks again,
 -Adam

 --

 http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053474


--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053504

RE: Re: redirect with get from post

2013-04-16 Thread Adam Mc
Jerome,

thanks for your reply.  Yes, I was not aware of the html redirect, as I have 
always used server side.  I suppose that would work, but it does seem that 
serverside is a more recommended method.

My pattern is that an HTML FORM submits a POST, and depending on the 
circumstance, issues a redirect.  This pattern always worked fine using 
servlets. Switching to Restlet caused a bit of a problem in this area as it was 
forcing a POST redirect.

Too bad we can't designate the redirect method.  Is there something in REST or 
HTTP that dictates against changing methods on a redirect?

Regardless, I have found Restlets to be a great framework and I am currently in 
the process of switching some major code base over to the framework.

Thanks again,
-Adam

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053474


Re: redirect with get from post

2013-04-15 Thread Jerome Louvel
Hi Adam,

I guess you could use an HTML redirect in this case, if your client is
ineed a web browser.

Best regards,
Jerome
--
http://restlet.org
http://twitter.com/#!/jlouvel



2013/4/14 Adam Mc a...@cs.miami.edu

 Hi,

 I have a post request, and after that request I need to temporarily
 redirect to another page.  However, I need that redirect to be a GET not a
 POST.  I see in the docs that the redirect uses the same method, which in
 this case is a POST.  Is there any way to change the method being used to a
 GET?

 Thanks,
 -Adam

 --

 http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053244


--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053323

redirect with get from post

2013-04-13 Thread Adam Mc
Hi,

I have a post request, and after that request I need to temporarily redirect to 
another page.  However, I need that redirect to be a GET not a POST.  I see in 
the docs that the redirect uses the same method, which in this case is a POST.  
Is there any way to change the method being used to a GET?

Thanks,
-Adam

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3053244