netty-http icon indicating copy to clipboard operation
netty-http copied to clipboard

The return data could not be received , android

Open WWY2016 opened this issue 5 years ago • 10 comments

The return data could not be received , android

WWY2016 avatar Apr 20 '19 02:04 WWY2016

Can you give more details for the issue? Do you see any errors?

chtyim avatar Apr 20 '19 03:04 chtyim

responder.sendString(HttpResponseStatus.OK,""); Data is empty ,The browser receives the data; but (responder.sendString(HttpResponseStatus.OK,"test"); ) The data is not empty The browser cannot return a value

WWY2016 avatar Apr 20 '19 03:04 WWY2016

Android Mobile phone as a server ,Browser access to phone

WWY2016 avatar Apr 20 '19 03:04 WWY2016

curl data is received

WWY2016 avatar Apr 20 '19 03:04 WWY2016

I'm sorry my English is poor,I don't know if you can read the description;

WWY2016 avatar Apr 20 '19 03:04 WWY2016

I don’t quite get what you mean. Maybe you can write in your own language and we can try to get someone to help on translation

chtyim avatar Apr 20 '19 06:04 chtyim

我是做android开方的,用您写的这个框架,写接口,运行在手机上; 例如接口名称/api/ping, 我用浏览器能访问这个接口 并能接到数据,返回body数据为空时(responder.sendString(HttpResponseStatus.OK,"");) 浏览器能接到响应的,但当返回body数据不为空时 (responder.sendString(HttpResponseStatus.OK,"ok");)浏览器无响应,一直访问

WWY2016 avatar Apr 20 '19 08:04 WWY2016

但是 我用curl http://192..../api/ping 能够返回ok数据

WWY2016 avatar Apr 20 '19 08:04 WWY2016

I am from China

WWY2016 avatar Apr 20 '19 08:04 WWY2016

close

fatso83 avatar Apr 19 '22 15:04 fatso83