hoaproject / Http

The Hoa\Http library.
https://hoa-project.net/
10 stars 9 forks source link

Log as cURL #25

Open 1e1 opened 7 years ago

1e1 commented 7 years ago

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?

--- 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).
Hywan commented 7 years ago

This is a good idea. An excellent one. Will consider it during the rewrite of this library!

jubianchi commented 7 years ago

totally agree: good idea 👍