Haven’t you ever come across an Api written in cURL and said to yourself, “Oh, if only there was a specific tool for converting cURL to HTTP for Laravel , the person would copy the cURL code and automatically convert it to HTTP code, without having to write any additional code. Especially Given that you can get this cURL from any source, such as documentation from any website, postman, or even Google Chrome… If you check out the required request and locate it in the Network tab, and then choose Copy cURL, how do you convert this cURL to Http and I appear in this format?
Http::asForm()
->withHeaders([
'cache-control' => 'no-cache',
'content-type' => 'application/x-www-form-urlencoded',
'postman-token' => '312024fc-f9b4-5ed8-c47f-063f50b0953a',
])
->post('https://results.mehe.gov.lb/', [
'SeatingNo' => 149243,
'__RequestVerificationToken' => ''
]);
Instead of this terrifying sight...
curl -X POST \
https://results.mehe.gov.lb/ \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'postman-token: 312024fc-f9b4-5ed8-c47f-063f50b0953a' \
-d 'SeatingNo=149243&__RequestVerificationToken=CfDJ8KKxHkjBD21Mp2YVhd_CVXeqzAgert1'
Tool Url
https://laravelshift.com/convert-curl-to-http

This is the Github link if you want to develop with them in the Package https://github.com/laravel-shift/curl-converter
This was a quick, light article. If you have any questions, don’t forget to leave them in the comments