Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 import 'package:http/http.dart' as http; | |
| 2 | |
| 3 void main() { | |
| 4 var url = 'http://httpbin.org/post'; | |
| 5 http.post(url, fields: {"name": "doodle", "color": "blue"}).then((response) { | |
|
Anders Johnsen
2013/12/06 11:53:28
This is posting specific fields. To match the test
shailentuli
2013/12/06 18:16:29
Anders, there is no data arg for http.post(). I'm
| |
| 6 print("Response status: ${response.statusCode}"); | |
| 7 print("Response body: ${response.body}"); | |
| 8 }); | |
| 9 } | |
| OLD | NEW |