大神看一下,我这个POST请求那里错了,直接说出来。谢谢大神
String username = usernameEdit.getText().toString();
String password = passwordEdit.getText().toString();
OkHttpClient client = new OkHttpClient();
RequestBody requestBody = new FormBody.Builder()
.add("username", username)
.add("password", password)
.build();
Request request = new Request.Builder()
.url("http://test.ourwechat.com/test/auth.php")
.post(requestBody)
.build();
try {
Response response =client.newCall(request).execute();
response.body().string();
} catch (IOException e) {
e.printStackTrace();
}