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

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

    If the .NET application is running in your current user account, add the following content inside the configuration section:

    
     
      
       
      
     
    
    

    Note: Important: Regardless of other settings, .NET will always bypass the Fiddler proxy for URLs containing localhost. So, rather than using localhost, change your code to refer to the machine name. For instance:

    This URL will not appear in Fiddler:

    http://localhost/X509SignCodeService/X509SigningService.asmx

    This URL will appear in Fiddler:

    http://mymachine/X509SignCodeService/X509SigningService.asmx

提交回复
热议问题