The ___________ header is used to specify the format of the response accepted by the client.
- Accept-Encoding
- Content-Type
- User-Agent
- Authorization
The correct option is Content-Type. The Content-Type header in HTTP requests and responses specifies the media type of the data being sent or received. For example, it can indicate whether the data is in JSON, XML, HTML, or another format. This header helps the client and server understand how to handle the data appropriately.
Loading...
Related Quiz
- Which design pattern is used to ensure a class has only one instance and provides a global point of access to it?
- Imagine you're tasked with implementing a priority queue using a sorting algorithm. Which sorting algorithm would you choose and why?
- What does RDBMS stand for in the context of databases?
- The ___________ design pattern separates an algorithm from the object that uses it, allowing the algorithm to vary independently.
- Web application firewalls (WAFs) can help mitigate attacks by filtering incoming ________.