I like the "Copy as cURL" command in the Firefox Network inspector. It's very powerful. Then I can quickly debug in a console. We can't debug easily `curl_*` calls with the native PHP functions. It could be very interesting to add a `toCURL()` method. Especially for logging. (Last make `__toString()` as an alias of `toCURL()`) What do you think about that? <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40589834-log-as-curl?utm_campaign=plugin&utm_content=tracker%2F2455535&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2455535&utm_medium=issues&utm_source=github). </bountysource-plugin>
I like the "Copy as cURL" command in the Firefox Network inspector. It's very powerful. Then I can quickly debug in a console.
We can't debug easily
curl_*calls with the native PHP functions.It could be very interesting to add a
toCURL()method. Especially for logging.(Last make
__toString()as an alias oftoCURL())What do you think about that?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.