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

It is not support --data-raw #6

Open
orestonce opened this issue Oct 21, 2020 · 1 comment
Open

It is not support --data-raw #6

orestonce opened this issue Oct 21, 2020 · 1 comment

Comments

@orestonce
Copy link

  • input
curl -X POST https://www.google.com --data-raw 'id=ae94cfbb-38b0-4b0c-bcff-2cb866a742fa'
  • expect output:

// Generated by curl-to-Go: https://mholt.github.io/curl-to-go
resp, err := http.Post("https://www.google.com", "", strings.NewReader("id=ae94cfbb-38b0-4b0c-bcff-2cb866a742fa"))
if err != nil {
	// handle err
}
defer resp.Body.Close()
  • current output:

// Generated by curl-to-Go: https://mholt.github.io/curl-to-go
resp, err := http.Post("https://www.google.com", "", nil)
if err != nil {
	// handle err
}
defer resp.Body.Close()
@sethgrid
Copy link
Owner

sethgrid commented Oct 26, 2020 via email

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