Hello guys, welcome to the 10th session of the as we don't have VBA tutorials in this lesson we will learn about the content negotiation. Content negotiation means the setting the content type of the server that returns for that we need to use the Accept header, the content type or the acceptable for the response we need to set the header during the URL request. Let's switch to postman and he. First of all we are trying to retrieve the all of the a product which return in the form of deities and what what happened to you want to return in the form of the XML. For that, you need to specify the header accept XML click on the send button which will return the data in the form of the XML. For this and you need to write the JSON and click on the send button, which will return in the form of the Jason.
You can also specify the multiple accept type, by separating comma. You can also use the equality factor, that is a cue. For that you need to write the semicolon to equal to some value, let's say 0.5 and click on the send button. You can see that it returned in the form of the XML instead of the ages and how our Jason was written first. The reason for that is that we specify the quality factor for Jason is 0.5. And there we are not specify the quality factor for the XML.
So it by default, take the one so one is Higher than it will choose the higher one. If you specify the quality factors 0.3 for the XML then you will select the Jason syntax for the activities that accept colon MIME type semicolon quality factor equal to the sum value and comma separated by the some other MIME type. There are various Monday ba which are supported but the JSON and the XML are the most commonly used MIME type. Thanks for watching. Have a nice day.