Firefox Add-on RESTclient - How to input POST parameters?

RestPostFirefox Addon

Rest Problem Overview


I've installed Firefox RESTclient add-on but , I'm having hard time figuring out how to pass POST parameters. Is there a specific format to do this? Or is there any other tool which can be used to debug an REST API on Mac OS X ?

Rest Solutions


Solution 1 - Rest

If you want to submit a POST request

  1. You have to set the “request header” section of the Firefox plugin to have a “name” = “Content-Type” and “value” = “application/x-www-form-urlencoded
  2. Now, you are able to submit parameter like “name=mynamehere&title=TA” in the “request body” text area field

Solution 2 - Rest

Here is a step by step guide (I think this should come pre-loaded with the add-on):

  1. In the top menu of RESTClient -> Headers -> Custom Header

  2. In the pop-up box, enter Name: Content-Type and Value: application/x-www-form-urlencoded

  3. Check the "Save to favorite" box and click Okay.
    Now you will see a "Headers" section with your newly added data.

  4. Then in the Body section, you can enter your data to post like:

     username=test&name=Firstname+Lastname
    
  5. Whenever you want to make a post request, from the Headers main menu, select the Content-Type:application/x-www-form-urlencoded item that you added and it should work.

Solution 3 - Rest

You can send the parameters in the URL of the POST request itself.

Example URL:

localhost:8080/abc/getDetails?paramter1=value1&parameter2=value2

Once you copy such type of URL in Firefox REST client make a POST call to the server you want

Solution 4 - Rest

Request header needs to be set as per below image.add request header

request body can be passed as json string in text area. enter image description here

Solution 5 - Rest

I tried the methods mentioned in some other answers, but they look like workarounds to me. Using Firefox Add-on RESTclient to send HTTP POST requests with parameters is not straightforward in my opinion, at least for the version I'm currently using, 2.0.1.

Instead, try using other free open source tools, such as Apache JMeter. It is simple and straightforward (see the screenshot as below)

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRukshanView Question on Stackoverflow
Solution 1 - RestMahmoud KhaledView Answer on Stackoverflow
Solution 2 - ResthappyhardikView Answer on Stackoverflow
Solution 3 - RestHeggiView Answer on Stackoverflow
Solution 4 - RestPrashant SharmaView Answer on Stackoverflow
Solution 5 - RestYuciView Answer on Stackoverflow