本文实例为大家分享了使用OkHttp发送post请求的具体代码,供大家参考,具体内容如下 MainActivity.java public class MainActivity extends AppCompatActivity { private EditText mEt_qq; private EditText mEt_pwd; private TextView mTv_status; String path = http://169.254.53.96:8080/web/LoginServlet; private static final int SUCCESS = 66