Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support URLSearchParams as data #36

Open
d3bgger opened this issue Feb 21, 2021 · 1 comment
Open

support URLSearchParams as data #36

d3bgger opened this issue Feb 21, 2021 · 1 comment

Comments

@d3bgger
Copy link

d3bgger commented Feb 21, 2021

axios supports passing a URLSearchParams object as data, when you need a post with "application/x-www-form-urlencoded".
curlirize prints an empty data object in the console.

@ericzon
Copy link

ericzon commented Sep 3, 2021

I think is more or less related with this, in Nodejs v12.13.0 sending json in params field appears like this:

...
"curlCommand": "curl -X GET -H \"Authorization:Bearer xxxx\" \"http://localhost:3000/api/api-path?createdAt=[object Object]
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants