Convert curl commands into Got calls #2202
verhovsky
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
curlconverter can now rewrite curl commands into Got function calls. These curl arguments are supported:
--request
(-X
)--get
(-G
)--head
--header
(except when it's a filename)--user-agent
--cookie
(except files)--user
--data
/--data-raw
/--data-ascii
/--data-binary
/--data-urlencode
/--json
(except files)--url-query
(except files)--form
/--form-string
--max-time
--connect-timeout
--location
--max-redirs
--compressed
--insecure
and also these ones that aren't really worth mentioning:
--referer
,--range
,--time-cond
,--oauth2-bearer
,--globoff
,--http2
and--proto-default
.Try it out at https://curlconverter.com/node-got/ and let me know if you have any feedback.
The website has analytics for tracking page loads but your curl commands aren't sent anywhere, everything happens client side in JavaScript.Beta Was this translation helpful? Give feedback.
All reactions