gencurl
gencurl copied to clipboard
gencurl generates a curl command based on an http.Request to be used for logging and debugging
* 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 {...
I came here to say this. That is all :)
Hi, today I tried testing for multipart/form-data cURL posting, but it didn't convert the form itself Original curl ``` curl -X POST \ https://localhost:8000/login \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \...