I\'m trying to make an post request in flutter with content type as url encoded. When I write body : json.encode(data), it encodes to plain text.
body : json.encode(data)
If I
Map body = { 'getDetails': 'true' }; final response = await http.post("https://example.com/", body: body); if (response.statusCode == 200) { //Your code }