POSTER – this tool lets you make HTTP GET and POST calls on REST enabled services.
- Open Mozilla Browser > Tools > Add-Ons > Extensions Search for POSTER > Click Install.
- You Might need to restart the browser.
- Thereafter, to use the Installed tool ; go to Tools > Poster
Now testing a publically available sample HTTP POST Service.
Let me take a service,from https://developers.google.com/accounts/docs/AuthForInstalledApps
Here we have a basic Login API exposed by GOOGLE ,that takes in accountType and Email and Password in Request Body
- URL: https://www.google.com/accounts/ClientLogin
- Content-Type:application/x-www-form-urlencoded
- Content to Send (POST Request Message):
accountType=HOSTED_OR_GOOGLE&Email=YOUR_GMAIL_ID@gmail.com&Passwd=YOUR_PASSWORD
- Click !! POST Button
Response:
A success response contains the authorization token, labeled "Auth", in the body of the response. Your application must reference this token in each request to the Google service for this user. Additional cookies, labeled "SID" and "LSID”.