Am Mittwoch, 6. April 2016 12:18:01 UTC+2 schrieb Stuart Dodds:
>
> First of all, it never even crossed my mind to try to change the form 
> method to GET until you mentioned it in your second point. So I tried it 
> out and it worked! Now I can build the url after the successful validation 
> and use the redirect_to method to send the user off to paypal with the 
> required parameters...thanks for the suggestion!
>

To be precise, I actually never mentioned transforming the _submission_ of 
the form to a GET request (or a redirect employing a GET request)!

Requests changing server-side state should be POST-Requests plus you don´t 
want to have the parameters show up in the URL field of the browser, 
webserver logs etc.

_IF_ you could send the POST request from your server to the external site 
(no authentication issues etc.) and _IF_ the external site used a 
Redirect-after-POST strategy, _THEN_ you could have re-send the redirect 
URL received from the external site (as answer to your POST request) 
onwards to your user. That´s what I tried to describe in strategy 2 - so 
there´s quite a few preconditions to meet to make strategy 2) a viable 
solution...

Heiko

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to