简体   繁体   中英

Content-type in a GET request header

I'm finding it hard to understand if there are any implications of asking for a content-type header for GET requests. I know that usually one should use accept header for GET, but what are the implications of using a content-type?

Basically Content type is used for the Content you are sending! We can have multiple content type while sending Request, Could be JSON, XML and others etc. Using content type will specify the server and Client that the Content we will send will be a JSON, XML, or any other type.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM