为什么浏览器无法处理来自我的http服务器的响应。

huangapple 未分类评论54阅读模式
英文:

Why browsers won't handle response from my http-server

问题

我正在尝试使Netty-socketio在Android操作系统下运行。在调试过程中遇到的问题是,Android设备上生成的响应未被任何浏览器识别。以下是两张Fiddler生成的GET请求组成的图片:

第一张图片是在termux终端上以端口3000在nodejs下运行的socket.io服务器的响应。我基于这篇文章实现了这个服务器(它完全正常工作,但我需要在我的Android应用程序中使用socket.io服务器)
为什么浏览器无法处理来自我的http服务器的响应。

第二张图片是来自运行在3002端口的Netty-socketio的响应。
为什么浏览器无法处理来自我的http服务器的响应。

以下是浏览器中的显示效果:
3000端口(termux,nodejs)
为什么浏览器无法处理来自我的http服务器的响应。
3002端口(netty-socketio)
为什么浏览器无法处理来自我的http服务器的响应。
以防万一,我在Wireshark中比较了这两个请求,但没有找到任何线索。
为什么浏览器无法处理来自我的http服务器的响应。

我将非常感谢任何帮助。

英文:

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)
为什么浏览器无法处理来自我的http服务器的响应。

The second one is a response from Netty-socketio (running on 3002 port)
为什么浏览器无法处理来自我的http服务器的响应。

And here's what get in browsers:
3000 port (termux, nodejs)
为什么浏览器无法处理来自我的http服务器的响应。
3002 port (netty-socketio)
为什么浏览器无法处理来自我的http服务器的响应。
Just in case I compared these two requests in wireshark and couldn't find any hint.
为什么浏览器无法处理来自我的http服务器的响应。

I will appreciate any help.

huangapple
  • 本文由 发表于 2020年5月5日 05:28:18
  • 转载请务必保留本文链接:https://java.coder-hub.com/61601949.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定