英文:
Why browsers won't handle response from my http-server
问题
我正在尝试使Netty-socketio在Android操作系统下运行。在调试过程中遇到的问题是,Android设备上生成的响应未被任何浏览器识别。以下是两张Fiddler生成的GET请求组成的图片:
第一张图片是在termux终端上以端口3000在nodejs下运行的socket.io服务器的响应。我基于这篇文章实现了这个服务器(它完全正常工作,但我需要在我的Android应用程序中使用socket.io服务器)
第二张图片是来自运行在3002端口的Netty-socketio的响应。
以下是浏览器中的显示效果:
3000端口(termux,nodejs)
3002端口(netty-socketio)
以防万一,我在Wireshark中比较了这两个请求,但没有找到任何线索。
我将非常感谢任何帮助。
英文:
I'm trying to make Netty-socketio to work under android OS. The issue i've met during debugging is that the response generated on android device is not recognized by any browser. Here're two pictures of Fiddler composed GET requests:
The first one is a response from socket.io server that runs on port 3000 under nodejs from termux terminal. This server I implemented based on this post (it works absulutely fine, but I need socket.io server inside of my android app)
The second one is a response from Netty-socketio (running on 3002 port)
And here's what get in browsers:
3000 port (termux, nodejs)
3002 port (netty-socketio)
Just in case I compared these two requests in wireshark and couldn't find any hint.
I will appreciate any help.
专注分享java语言的经验与见解,让所有开发者获益!
评论