laravel-shift / curl-converter

Online tool to convert `curl` requests to Laravel `Http` requests
MIT License
88 stars 10 forks source link

Ignore cURL's `--location` flag #11

Closed nexxai closed 2 years ago

nexxai commented 2 years ago

Closes #10

When the --location or -L shortcut is given to follow redirects, it is silently dropped since this is the default Http client behaviour.

jasonmccreary commented 2 years ago

This is good. However, I would appreciate if you could make a test fixture and add it to the data provider (instead of a new test case).

Basically you create a .in file with the expected curl command and then a .out file of the same name with the Http client code.

In this case, you'd have a curl command with the --location option and Http code that doesn't have any extra options/methods than normal.

nexxai commented 2 years ago

Sorry about that. Fixture created.

jasonmccreary commented 2 years ago

Epic. Thanks!