Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V226 ANDROID HTTP请求总是返回超时 #505

Open
yuyangame opened this issue Jan 2, 2015 · 16 comments
Open

V226 ANDROID HTTP请求总是返回超时 #505

yuyangame opened this issue Jan 2, 2015 · 16 comments

Comments

@yuyangame
Copy link
Contributor

V226 ANDROID HTTP请求总是返回超时

@yuyangame
Copy link
Contributor Author

ios正常

@yuyangame
Copy link
Contributor Author

@htlxyz

@yuyangame
Copy link
Contributor Author

@SunLightJuly

@yuyangame
Copy link
Contributor Author

@yinqiang

@yuyangame
Copy link
Contributor Author

@dualface

@yuyangame
Copy link
Contributor Author

召唤大法施法完毕睡觉坐等回复

@dualface
Copy link
Contributor

dualface commented Jan 3, 2015

请提供测试代码

@yuyangame
Copy link
Contributor Author

@dualface 是我错了 安卓中请求中返回的是progress ios是inprogress 改了就好 已经提交了修改代码 #507

@yuyangame
Copy link
Contributor Author

@dualface 这问题解决后,又出现一个新问题,也是安卓平台
request:addPOSTValue ("test","haha")
服务端是PHP的
echo "postdata:".$_POST['test'];
返回客户端打印为 postdata:
就是addPOSTValue并未生效,也无报错

另外IOS测试无问题

@zrong
Copy link
Contributor

zrong commented Jan 4, 2015

@yuyangame 麻烦不要这样刷屏。所有评论内容,watch 的人都能收到邮件。

@hugohuang1111
Copy link
Contributor

@yuyangame addPOSTValue这个一般情况肯定是测过的,没有问题,
你的用法是怎么样的呢

@hugohuang1111
Copy link
Contributor

我们再测试了一次httpRequest,在android上,能收到数据,服务器nginx,
测试方法直接用的是tests中的networktest,修改它的url与增加addPOSTValue项
同时,我们也作了一处改动,#512
@yuyangame

@yuyangame
Copy link
Contributor Author

@htlxyz 额 我直接改成get了

...

for k,v in pairs(postdata) do
  request:addPOSTValue(k, v)
end
request:setTimeout(timeout)
request:start()

@hugohuang1111
Copy link
Contributor

@yuyangame
你是说你用"get",所以服务器那边收不到?

@yuyangame
Copy link
Contributor Author

@htlxyz 不是 我是用post无法add数据 现在改用GET ?k1=v1&k2=v2

@hugohuang1111
Copy link
Contributor

@yuyangame
我们试是可以的,还不明白为什么你那边不对,
会不会是你的服务器在对收到的原始数据处理时,出错了
或者在客户端这边可以调试下QuickHTTPInterface:postContent,这里是真正用java HttpURLConnection来发送addPOSTValue值的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants