2

how convert this command curl $ curl -i --basic -u admin:public -X GET "http://localhost:8081/api/v4" to http method to use it in flutter

and the result:

{"data":[{"path":"/auth_clientid","name":"list_clientid","method":"GET","descr":"List available clientid in the cluster"}, ...],"code":0}

please help thanks

1 Answer 1

4

Use this website: https://curl.trillworks.com/#dart

To convert curl commands to dart http requests.

Here is an example

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks @Asjad for sharing this solution. It works like a charm.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.