• <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 请求?

        时间:2023-10-13

              • <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 请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何装饰所有请求以从标头中获取值并将其添加到正文参数中? 下一篇:任意数量集合的笛卡尔积

                  相关文章

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

                3. <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>