You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
link to moul/http2curl for the reverse operation (#46)
* link to moul/http2curl for the reverse operation
gencurl is unmaintained and curl-to-Go's README already links to http2curl
* fix typo
* grammar
* capitalize menu item
Copy file name to clipboardExpand all lines: index.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ <h1>curl-to-Go</h1>
28
28
<h2>Instantly convert <ahref="http://curl.haxx.se/">curl</a> commands to <ahref="https://golang.org/">Go</a> code</h2>
29
29
30
30
<p>
31
-
This tool turns a curl command into Go code. (To do the reverse, check out <ahref="https://github.com/sethgrid/gencurl">sethgrid/gencurl</a>.) Currently, it knows the following options: -d/--data, -H/--header, -I/--head, -u/--user, --url, and -X/--request. It also understands JSON content types (see <ahref="https://mholt.github.io/json-to-go">JSON-to-Go</a>). If the content type is application/x-www-form-urlencoded then it will convert the date to <ahref="https://pkg.go.dev/net/url#Values">Values</a>(same as <ahref="https://pkg.go.dev/net/http#Client.PostForm">PostForm</a>). Feel free to <ahref="https://github.com/mholt/curl-to-go">contribute on GitHub</a>!
31
+
This tool turns a curl command into Go code. (To do the reverse, check out <ahref="https://github.com/moul/http2curl">moul/http2curl</a>.) Currently, it knows the following options: -d/--data, -H/--header, -I/--head, -u/--user, --url, and -X/--request. It also understands JSON content types (see <ahref="https://mholt.github.io/json-to-go">JSON-to-Go</a>). If the content type is application/x-www-form-urlencoded then it will convert the data to <ahref="https://pkg.go.dev/net/url#Values">Values</a>(same as <ahref="https://pkg.go.dev/net/http#Client.PostForm">PostForm</a>). Feel free to <ahref="https://github.com/mholt/curl-to-go">contribute on GitHub</a>!
32
32
</p>
33
33
34
34
<pclass="examples">
@@ -37,7 +37,7 @@ <h2>Instantly convert <a href="http://curl.haxx.se/">curl</a> commands to <a hre
@@ -47,12 +47,12 @@ <h2>Instantly convert <a href="http://curl.haxx.se/">curl</a> commands to <a hre
47
47
</main>
48
48
49
49
<p>
50
-
Note: http.DefaultClient will follow redirects by default, whereas curl does not without the <code>--location</code> flag. Since reusing HTTP client is good Go practice, this tool does not attempt to configure the HTTP client for you.
50
+
Note: http.DefaultClient will follow redirects by default, whereas curl does not without the <code>--location</code> flag. Since reusing the HTTP client is good Go practice, this tool does not attempt to configure the HTTP client for you.
0 commit comments