获取无效状态行10380HTTP / 1.1 200 OK [英] Getting invalid status line 10380HTTP/1.1 200 OK

查看:1739
本文介绍了获取无效状态行10380HTTP / 1.1 200 OK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它的驾驶我疯了。我创建了一个Android应用程序,并REST请求发送到Apache服务器上运行的CakePHP 2.X。

It's driving me crazy. I created an Android App that does REST requests to an Apache Server running CakePHP 2.X.


  • 在Android的一面:用抽射谷歌它的头版本的发出请求

  • 在服务器端:这是一个的Apache 2,PHP 5.4,CakePHP的2.x和SSL

无论请求方法GET或POST,用相同的URL或相同的参数时,POST,有时反应是好的别人一次我 com.android.volley.NoConnectionError:java.net.ProtocolException:意外状态行:10380HTTP / 1.1 200 OK

Whatever request method GET or POST, with the same URL or same parameters when POST, sometimes the response is fine others time I get com.android.volley.NoConnectionError: java.net.ProtocolException: Unexpected status line: 10380HTTP/1.1 200 OK

当错误发生时,我注意到的唯一事情就是修改之前的数量。

When the error happen, the only thing i noticed is the number before changes.

10380HTTP/1.1 200 OK

你知道吗?
谢谢

Any idea? Thanks

我能嗅出请求/响应,可以证实这是一个服务器端的问题。

I could sniff the request/response and could confirm it's a server side issue.

堆栈跟踪

在这里输入的形象描述

推荐答案

随着信息从 @Julian雷什克 @ AD7six

显然,这是一个使用保活时常见的错误,第二,第三等的反应是搞乱了。

Apparently it's common error when using keep-alive and the second,third,etc response was messing up.

所以,下面我从这次得到的信息<一个href=\"http://stackoverflow.com/questions/3352424/httpurlconnection-openconnection-fails-second-time\">post,这个问题貌似解决了(我会继续对其进行测试)。

So following the information i got from this post, the problem looks like solved (I'll keep testing it).

这篇关于获取无效状态行10380HTTP / 1.1 200 OK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆