What is the purpose of the "Content-Type" header in RESTful API requests?
- Define the format of the request body
- Determine the API endpoint being accessed
- Indicate the HTTP method being used
- Specify the type of authentication used
The "Content-Type" header in RESTful API requests specifies the format of the data being sent in the request body. For example, it can be "application/json" for JSON data or "application/xml" for XML data.
Loading...
Related Quiz
- The ___________ algorithm is used to find the shortest paths between nodes in a weighted graph.
- In a file system, the ___________ keeps track of free and allocated disk blocks.
- Which mechanism is used to prevent multiple threads from accessing shared resources simultaneously?
- What is the difference between clustered and non-clustered indexes?
- What is the OSI Model used for?