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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners