官术网_书友最值得收藏!

Fiddler

Fiddler is a free web debugging tool that works as a proxy, logging all HTTP(S) traffic that is executed by processes in your computer. Fiddler allows you to inspect the traffic to see that exact HTTP request that was sent and the exact HTTP response that was returned. You can also use other advanced features, such as setting breakpoints and overriding the data that is sent or received.

To install Fiddler, navigate to https://www.telerik.com/fiddler and click the Free download button. Save and run the installer:

The Fiddler main screen is built from these main parts:

  • Sessions list: Shows the HTTP(S) requests that were sent from processes in your machine
  • Fiddler tabs: Contains different tools for inspecting and controlling sessions
  • Request inspector: When the Inspectors tab and inner Raw tab are selected, this section shows the request as it was sent over-the-wire
  • Response inspector: When the Inspectors tab and inner Raw tab are selected, this section shows the response as it was sent over-the-wire

Immediately after you run Fiddler, it starts collecting the HTTP sessions that are performed in your machine. If you refresh the browser that you used to navigate to the /api/Products API  you created, you should see this session in Fiddler's Sessions List, as shown in the preceding screenshot.

If you run a .NET application that sends HTTP requests to an address in your localhost, you won't see the session appear in Fiddler. Changing the address to localhost.fiddler will force the request to be captured by Fiddler.

Fiddler is a great tool for debugging the requests and responses that are made in your application, but it means that you need to have a client that sends those requests. Many times when debugging and experimenting with APIs, you want to create HTTP requests manually and inspect them. You can accomplish this task with Fiddler's Composer tab, but I want to teach you about another tool that is much more suitable for these scenarios—Postman.

主站蜘蛛池模板: 梁河县| 永吉县| 封开县| 水城县| 武夷山市| 扶余县| 银川市| 宜黄县| 九龙坡区| 陈巴尔虎旗| 格尔木市| 长汀县| 三门峡市| 革吉县| 岐山县| 宁蒗| 衡水市| 常州市| 靖江市| 宜兴市| 萍乡市| 漯河市| 株洲市| 马鞍山市| 阿拉善左旗| 金坛市| 门源| 宕昌县| 子长县| 曲沃县| 临潭县| 汤阴县| 无锡市| 志丹县| 南康市| 延庆县| 美姑县| 伊金霍洛旗| 藁城市| 开平市| 宜兴市|