• <tfoot id='ST6N5'></tfoot>
  • <small id='ST6N5'></small><noframes id='ST6N5'>

    1. <i id='ST6N5'><tr id='ST6N5'><dt id='ST6N5'><q id='ST6N5'><span id='ST6N5'><b id='ST6N5'><form id='ST6N5'><ins id='ST6N5'></ins><ul id='ST6N5'></ul><sub id='ST6N5'></sub></form><legend id='ST6N5'></legend><bdo id='ST6N5'><pre id='ST6N5'><center id='ST6N5'></center></pre></bdo></b><th id='ST6N5'></th></span></q></dt></tr></i><div id='ST6N5'><tfoot id='ST6N5'></tfoot><dl id='ST6N5'><fieldset id='ST6N5'></fieldset></dl></div>

      <legend id='ST6N5'><style id='ST6N5'><dir id='ST6N5'><q id='ST6N5'></q></dir></style></legend>

          <bdo id='ST6N5'></bdo><ul id='ST6N5'></ul>

        如何在 Java 中解析 HTTP 请求?

        How to parse an HTTP Request in Java?(如何在 Java 中解析 HTTP 请求?)

              • <bdo id='Z8QVY'></bdo><ul id='Z8QVY'></ul>

                    <tbody id='Z8QVY'></tbody>

                  <small id='Z8QVY'></small><noframes id='Z8QVY'>

                  <legend id='Z8QVY'><style id='Z8QVY'><dir id='Z8QVY'><q id='Z8QVY'></q></dir></style></legend>
                  <i id='Z8QVY'><tr id='Z8QVY'><dt id='Z8QVY'><q id='Z8QVY'><span id='Z8QVY'><b id='Z8QVY'><form id='Z8QVY'><ins id='Z8QVY'></ins><ul id='Z8QVY'></ul><sub id='Z8QVY'></sub></form><legend id='Z8QVY'></legend><bdo id='Z8QVY'><pre id='Z8QVY'><center id='Z8QVY'></center></pre></bdo></b><th id='Z8QVY'></th></span></q></dt></tr></i><div id='Z8QVY'><tfoot id='Z8QVY'></tfoot><dl id='Z8QVY'><fieldset id='Z8QVY'></fieldset></dl></div>
                1. <tfoot id='Z8QVY'></tfoot>
                2. 本文介绍了如何在 Java 中解析 HTTP 请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在实现代理服务器时,我得到一个字符串形式的 HTTP 请求,比如这个:

                  When implementing a proxy server, I get an HTTP request as a string, such as this one:

                  GET http://localhost:54321/x HTTP/1.1

                  GET http://localhost:54321/x HTTP/1.1

                  主机:本地主机:54321

                  Host: localhost:54321

                  缓存控制:无缓存

                  是否有一个内置类来解析这个请求?

                  Is there a built-in class to parse this request?

                  推荐答案

                  我对这种解析的内置支持一无所知.如果你真的需要这样的解析器,你可以查看这个库:http://hc.apache.org/index.html

                  I don't know anything about built-in support for such parsing. If you really need such parser, you can check out this lib: http://hc.apache.org/index.html

                  这里有详细的例子:http://www.mail-archive.com/httpclient-user@jakarta.apache.org/msg04070.html

                  这篇关于如何在 Java 中解析 HTTP 请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Compiling C++ for the JVM(为 JVM 编译 C++)
                  Compile to java bytecode (without using Java)(编译成java字节码(不使用Java))
                  How to drive C#, C++ or Java compiler to compute 1+2+3+...+1000 at compile time?(如何在编译时驱动 C#、C++ 或 Java 编译器计算 1+2+3+...+1000?)
                  Java ClassLoader: load same class twice(Java ClassLoader:两次加载相同的类)
                  How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                  Java quot;The blank final field may not have been initializedquot; Anonymous Interface vs Lambda Expression(Java“可能尚未初始化空白的最终字段匿名接口与 Lambda 表达式)

                  <small id='iqYIw'></small><noframes id='iqYIw'>

                      <tbody id='iqYIw'></tbody>
                  • <i id='iqYIw'><tr id='iqYIw'><dt id='iqYIw'><q id='iqYIw'><span id='iqYIw'><b id='iqYIw'><form id='iqYIw'><ins id='iqYIw'></ins><ul id='iqYIw'></ul><sub id='iqYIw'></sub></form><legend id='iqYIw'></legend><bdo id='iqYIw'><pre id='iqYIw'><center id='iqYIw'></center></pre></bdo></b><th id='iqYIw'></th></span></q></dt></tr></i><div id='iqYIw'><tfoot id='iqYIw'></tfoot><dl id='iqYIw'><fieldset id='iqYIw'></fieldset></dl></div>
                      <tfoot id='iqYIw'></tfoot>
                      • <bdo id='iqYIw'></bdo><ul id='iqYIw'></ul>

                            <legend id='iqYIw'><style id='iqYIw'><dir id='iqYIw'><q id='iqYIw'></q></dir></style></legend>