Firefox interface testing tool

RESTClient is a Mozilla Firefox plugin for testing http request. Query inside Firefox add-ons and install, very small, the interface is very simple, very convenient to use, look at the picture below you all, and hope to help novice!

1. Open Firefox extension search RESTClient installation and restart the browser.

 

 

2, you can see after the restart RESTClient Mozilla Firefox icon to the right of the address bar, click on the icon to enter use. You can configure Request: POST, GET request URL, Content-Type, Body. Click to send finished returned and displayed Response: Response Headers, Response Body (Raw), Response Body (Highlight), Response Body (Preview);

 


---------------------
Author: fuyifang
Source: CSDN
Original: https: //blog.csdn.net/fuyifang/article/details/45534903

 

 

----------------------------------------------------------------------------------------------------------------

Installation: Open RESTED tab

 

------------------------------------------------------------------------------------

Chrome has under the famous Postman, that Firefox has its right-hand man, and that is RESTClient and HttpRequester. Both Firefox plug-in tools are mainly used to simulate sending an HTTP request, the HTTP request two most commonly used method is to get and post, because the get method is very simple and will not be discussed here focuses on how to use these two transmitting tool post request.

1.RESTClient
1

首先Method选择POST,将接口地址填入URL地址栏:


接着点击最上方的Headers下拉菜单,选择Custom Header:


在弹出的对话框中输入Name和Value,点击Okay:


顺便提一句,这里的Name和Value可以在火狐浏览器中敲F12获取:


添加好Custom Header之后该信息栏会出现在页面中,然后我们在Body栏中输入请求体信息,这里我测试的接口是向接口地址发送一个id得到我的账户和一个状态码,如果成功那这个状态码为0:


最后点击右上方的SEND,响应体内容就出来了,状态码为0,说明测试成功了:


2.HttpRequester
1


同样,首先Method选择POST,将接口地址填入URL地址栏:


接着在下方选择Parameters,输入Name和Value并点击Add:


添加好之后该条信息会出现在下方列表中,此时返回到Centent to Send,点击Parameter Body,下方列表会出现该条信息,Centent Type会自动变成application/x-www-form-urlencoded:


最后点击POST,右边会出现Response信息:

---------------------
作者:Real_Tino
来源:CSDN
原文:https://blog.csdn.net/Real_Tino/article/details/52804668

Guess you like

Origin www.cnblogs.com/xiaoshen666/p/11118405.html