关于cocos2dx自带HttpClient联网问题

我们最近用cocos2dx3.12版本做了一个项目, 用HttpClient联网。但是在真机(ipone4)上访问网页,输出response->getResponseHeader()时,没有set-cookie(服务器已经set-cookie):log如下
HTTP/1.1 200 OK
Keep-Alive: timeout=5, max=99
Server: Apache/2.2.22 (Ubuntu)
Content-Type: text/html
X-Powered-By: PHP/5.3.10-1ubuntu3.23
Content-Length: 1694
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Wed, 20 Jul 2016 02:44:49 GMT
Connection: Keep-Alive…
Login completed

但是,同样的代码在mac上跑,是有set-cookie的。log如下:
HTTP/1.1 302 Found
Date: Wed, 20 Jul 2016 02:38:36 GMT
Server: Apache/2.2.22 (Ubuntu)
X-Powered-By: PHP/5.3.10-1ubuntu3.23
Set-Cookie: bra_user=a; path=/
Set-Cookie: bra_pass=0cc175b9c0f1b6a831c399e269772661; path=/
Location: index.php
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 23
Content-Type: text/html


Login completed
response failed
error buffer:

情况紧急,求大神指教!!!!!!!

我的游戏也偶尔出现这个错误返回