Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

amingomezd's avatar

Use http client to submit a post form and redirect as a form does in a view

I’m trying to emulate a form submit in a controller as it was submitted from a view. I’m trying with laravel http client, but it is not redirecting to the destination url. Can you point me in the right direction.

0 likes
2 replies
Snapey's avatar

why?

You are submitting back to your own site?

You are using php artisan serve ?

Please or to participate in this conversation.