Firefox Add-on RESTclient - How to input POST parameters?
You can send the parameters in the URL of the POST request itself.
Example URL:
localhost:8080/abc/getDetails?paramter1=value1¶meter2=value2
Once you copy such type of URL in Firefox REST client make a POST call to the server you want
If you want to submit a POST request
- 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
” - Now, you are able to submit parameter like “
name=mynamehere&title=TA
” in the “request body” text area field
Here is a step by step guide (I think this should come pre-loaded with the add-on):
- In the top menu of RESTClient -> Headers -> Custom Header
- In the pop-up box, enter Name:
Content-Type
and Value:application/x-www-form-urlencoded
- Check the "Save to favorite" box and click Okay.
Now you will see a "Headers" section with your newly added data. Then in the Body section, you can enter your data to post like:
username=test&name=Firstname+Lastname
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.