Tuesday, 29 March 2016

Poster and How to send(add) header in Poster

How to send(add) header in Poster

Poster is the web developers helper program to create and test custom HTTP requests.
Poster is a developer tool that allows you to interact with http server.

You can add poster plugin for chrome from Extensions Follow below steps.
And we can add poster for other browsers similar to chrome and we have alternate plug-ins like postman.

1.Find mobile icon at top right of the chrome browser.









2.Goto More tools->Extensions->type poster in search bar then add poster icon 
or chek the "Enabled" check box.

3.Then you will find Poster icon at top right of the chorme browser.

1.URL: Here you have to give the service url which you want to hit the server followed by request parameters.

Example: http://localhost:9080/procurement/getImportData?plant=BLT&period=01/13/2015

2.Headers:Hear you have to give the header information.
Name: Have to give the name of the Header.
Value: Have to give the value of the Header.
Then we must click on Add button otherwise this header will not be added.

3.Content Body: Hear you have to pass the body int the form of json or name and value format depends on your format.

Example: 

{
    "newScmID": "3",
    "oldScmId": "1",
    "newUserName":"pra"
}

No comments:

Post a Comment