我想登录一个网站,但是我不能,而且我还是Dart的新手。 我尝试运行此代码:
var url = "https://example.com/login";
http.post(url, body: {"login": "xxxxx", "password": "xxxx"})
.then((response) {
print("Response status: ${response.statusCode}");
print("Response body: ${response.body}");
此后,我收到发帖请求:
Response status: 302
Response body: //empty