Вопрос

In Fat Free it is possible to trigger a GET request by simply using route or reroute. But there are many situations in which the GET method is insecure and inappropriate for sending parameters. How can I trigger a post request to an URL and send parameters through POST?

Это было полезно?

Решение

Have a look at mock(). I think it's what you're looking for.

https://github.com/bcosca/fatfree#mocking-http-requests

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top