Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了一个小型代理(用 Java 编写),目的是修改来自 Web 服务器响应的特定数据。数据是一个 deflate 压缩的 XML 文件:我只希望客户端实际接收一些元素。
我对代理功能没有任何问题,但是当我尝试发送修改后的 xml 来代替服务器的响应时,客户端什么也没收到(web-debugger 显示内容长度为 0) - 我正在发送数据,至少有数据在我的应用程序正在写入 Socket 的输出流。
有关更多详细信息和一些代码,请参见此处。我不会发两次。