How can I display all the HTTP Headers when using the DefaultHTTPClient?

后端 未结 5 998
太阳男子
太阳男子 2020-12-30 12:21

When using the DefaultHttpClient() from the Apache Commons HTTP Client, is it possible to show the full request in the console output for debugging purposes?

5条回答
  •  悲&欢浪女
    2020-12-30 13:11

    When you execute the request you are passing somewhere HttpRequest object. It has method getAllHeaders()

提交回复
热议问题