chukong / quick-cocos2d-x

quick-cocos2d-x is a quick framework, based on cocos2d-x. Make mobile games in Lua.
http://quick-x.com/
1.48k stars 868 forks source link

CCHTTPRequest 状态返回错误 #524

Closed liu178443039 closed 9 years ago

liu178443039 commented 9 years ago

CCHTTPRequest的getErrorCode() 正常情况下返回的不是0 ,而是200,应该状态码乱了。

zrong commented 9 years ago

这个问题我也碰到了。 在android下面返回是 200,但win32和mac下都是0。

On 18:37, Thu, Feb 12, 2015 liu178443039 notifications@github.com wrote:

CCHTTPRequest的getErrorCode() 正常情况下返回的不是0 ,而是200,应该状态码乱了。

— Reply to this email directly or view it on GitHub https://github.com/chukong/quick-cocos2d-x/issues/524.

zrong commented 9 years ago

quick3也有同样问题。

On 18:49, Thu, Feb 12, 2015 Jacky zrongzrong@gmail.com wrote:

这个问题我也碰到了。 在android下面返回是 200,但win32和mac下都是0。

On 18:37, Thu, Feb 12, 2015 liu178443039 notifications@github.com wrote:

CCHTTPRequest的getErrorCode() 正常情况下返回的不是0 ,而是200,应该状态码乱了。

— Reply to this email directly or view it on GitHub https://github.com/chukong/quick-cocos2d-x/issues/524.

hugohuang1111 commented 9 years ago

android上用的是java http,非curl,这里分平台处理下吧

Ginoooo commented 9 years ago

CCHTTPRequestAndroid实在蛋疼,能否做个开关呢?其实很多人curl库还是要用的,做个开关,需要更小模块去curl库的人自己打开