Skip to content

It is not support --data-raw #6

@orestonce

Description

@orestonce
  • 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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions