首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >截击码错误307

截击码错误307
EN

Stack Overflow用户
提问于 2016-02-02 04:42:48
回答 1查看 1.9K关注 0票数 0

我有一个问题,我需要一个方法post的请求,我使用volley和它的响应

代码语言:javascript
复制
public void QueryPost() {

 final RequestQueue queue = Volley.newRequestQueue(this); //Debemos pasar el contexto de la actividad(Activity)
 StringRequest stringRequest = new StringRequest(Request.Method.POST, "http://pruebas/prueba.php", new Response.Listener < String > () {
  @Override
  public void onResponse(String response) { //Si la respuesta es positiva,si todo salio OK

   Log.e("respuesta ---- --- -- --   ", response);

  }
 }, new Response.ErrorListener() { //En el caso de que ocurra un error X
  @Override
  public void onErrorResponse(VolleyError error) {
   Log.e("Error: ", error.getMessage() + ""); //Se mostrara el error producido
  }
 });

 queue.add(stringRequest);

}

码错误307

代码语言:javascript
复制
BasicNetwork.performRequest: Unexpected response code 307 for 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-02-02 05:29:09

Volley 307错误码

HTTP错误307 -临时重定向

307是在另一个URL上临时可用的文档时发送的状态代码,也会返回该状态代码。302 status code307 status code之间的差别很小。307是作为302状态代码的另一个较不含糊的版本创建的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35145206

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档