Closed dnkmdg closed 2 years ago
Thanks. A few things:
--data-raw
issue.--location
option for an example.Agreed on separate PRs, figured I'd include them both since they don't really affect anything outside of CurlCommand::class
. I can remove the --data-raw
-part and put in a separate PR.
There are tests however, both fixtures are available as with-compressed-option
and with-insecure-option
. Or should there be any more specific tests?
Thanks. If you can remove the left over data-raw
fixtures from this PR, I'll get it merged.
When copying request from Chrome DevTools the options
--insecure
and--compressed
are sometimes present, and was not recognized by the package.The
--insecure
option should primarily be present when posting/fetching data from a non-SSL endpoint. The--compressed
option indicates that cURL accepts any encoded response, equivalent toCURLOPT_ENCODING = ""
I added support for these two in the options gatherer. They won't have any effect on the standard HTTP call, thus are simply ignored.
Removed notes about #8