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

后端 未结 6 1111
温柔的废话
温柔的废话 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:30

    Generally speaking, simply starting Fiddler before your application is sufficient. You haven't explained what you've tried so far.

    • If it doesn't just work, read: http://fiddlerbook.com/fiddler/help/hookup.asp#Q-DOTNET
    • If your target URL is localhost or 127.0.0.1, read: http://fiddlerbook.com/fiddler/help/hookup.asp#Q-LocalTraffic
    • If your code is running in IIS or ASP.NET, read: http://fiddlerbook.com/fiddler/help/hookup.asp#Q-IIS

提交回复
热议问题