ahmed zahran
ahmed zahran

Reputation: 33

how to convert curl command to http request in flutter?

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

Upvotes: 2

Views: 1677

Answers (1)

Asjad Siddiqui
Asjad Siddiqui

Reputation: 572

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

To convert curl commands to dart http requests.

Here is an example

Upvotes: 4

Related Questions