Sometimes you want to configure your Guzzle Client to follow redirects when doing a request, for example when you redirect an http to an https URL. In case of a POST request, Guzzle will lose the POST data. You have to tell Guzzle to use “strict RFC compliant redirects” which will mean a redirected POST request will result in another POST request instead of the default behavior that will result in a GET request. From the documentation: An example will look like this: Written by Written by
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners