Questions tagged «content-type»

5
Accept和Content-Type HTTP标头之间的区别
因此,Accept标头告诉服务器浏览器正在寻找的资源的MIME类型。例如,服务器可以发送纯文本,HTML,JSON等。 好的,这很有道理,但是当我查看Content-Type标题时,似乎正在做相同的事情。例如,它告诉服务器它需要文本或JSON。 那么HTTP标头Accept和Content-TypeHTTP标头有什么区别?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.