Apache HttpClient and custom ports

前端 未结 3 1275
遥遥无期
遥遥无期 2021-02-06 17:15

I\'m using the Apache HttpClient 4 and it works fine. The only thing that doesn\'t work is custom ports. It seems like the root directory is fetched and the port is ignored.

3条回答
  •  难免孤独
    2021-02-06 18:07

    The problem was that the server does not understand HTTP 1.1 chunked transfers. I cached the data by using a ByteArrayEntity and all was ok.

    So custom ports do work with the code mentioned above.

提交回复
热议问题