How to reroute with POST?With GET we have:
$f3->reroute('/search/?email=p@p.com');
It is not possible to send POST when redirecting
(which leads to a GET request).
The method and the body of the original request are reused to perform the redirected request. In the cases where you want the method used to be changed to
GET
, use303 See Other
instead. This is useful when you want to give an answer to aPUT
method that is not the uploaded resources, but a confirmation message (like "You successfully uploaded XYZ").The only difference between
307
and302
is that307
guarantees that the method and the body will not be changed when the redirected request is made.
Am Montag, 1. Juli 2019 10:49:46 UTC+2 schrieb Gosforth:
How to reroute with POST?With GET we have:
$f3->reroute('/search/?email=p...@p.com');
How to send this URL in post (with email value)?Regards
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework...@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/b6dd2bb0-4d7e-459b-bbe0-90d8a24d6069%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.