We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In CLI adding flag to print only curl output will be useful for :
$ magistrala-cli things get all $token --curl curl --location 'http://localhost/things' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer $token'
Following library helps to convert http request to cURL command
https://github.com/moul/http2curl
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}" -H "Content-Type: application/json" http://www.example.com/abc/def.ghi?jlk=mno&pqr=stu
The text was updated successfully, but these errors were encountered:
JeffMboya
Successfully merging a pull request may close this issue.
In CLI adding flag to print only curl output will be useful for :
Following library helps to convert http request to cURL command
https://github.com/moul/http2curl
The text was updated successfully, but these errors were encountered: