How can I trace the HttpClient request using fiddler or any other tool?

后端 未结 6 1102
温柔的废话
温柔的废话 2020-12-09 01:20

I am using HttpClient for sending out request to one of the web api service that I don\'t have access to and I need to trace the actual request stream getting to the server

6条回答
  •  一向
    一向 (楼主)
    2020-12-09 01:32

    If you are connecting with a url like http://localhost:1234 change it to http://localhost.fiddler:1234/ and the requests from HttpClient should then become visible in Fiddler.

提交回复
热议问题