moul/http2curl

📐 Convert Golang's http.Request to CURL command line

MakefileGoJavaScript
This is stars and forks stats for /moul/http2curl repository. As of 19 Apr, 2024 this repository has 701 stars and 63 forks.

http2curl 📐 Convert Golang's http.Request to CURL command line To do the reverse operation, check out mholt/curl-to-go. Example import ( "http" "moul.io/http2curl" ) data := bytes.NewBufferString(`{"hello":"world","answer":42}`) req, _ := http.NewRequest("PUT", "http://www.example.com/abc/def.ghi?jlk=mno&pqr=stu", data) req.Header.Set("Content-Type", "application/json") command, _ := http2curl.GetCurlCommand(req) fmt.Println(command) // Output: curl -X PUT -d "{\"hello\":\"world\",\"answer\":42}"...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
open-power/op-buildMakefileShellPerl9801810
atom/flight-manual.atom.ioSCSSRubyJavaScript62702k0
BDHU/minimalistSCSSHTMLRuby9701020
odoo/documentationreStructuredTextSCSSPython546-35.2k+37
storming0x/foundry_strategy_mixSolidityMakefile1050330
composer/getcomposer.orgStandard MLPHPTwig515+15420
RedHatter/svelte-devtoolsSvelteJavaScriptTypeScript1.1k0690
ElemeFE/mint-uiVueJavaScriptCSS16.6k+13.6k+2
DefectDojo/django-DefectDojoHTMLPythonJavaScript3.1k+91.4k+3
didi/DoraemonKitJavaObjective-CKotlin19.7k03.1k0