14

I was comparing headers of same HTTP Post request for Firefox and Internet Explorer and I see that for IE.

I was wondering:

What does Accept: */* mean under Client section of Request Headers?

4

2 回答 2

24

The accept: header defines the content type the client accepts, or expects to be returned by the server. Depending on the situation this can be text/css, text/html, image/png, .. etc. - just some mime type.

The * character is considered the wildcard. accept: */* simply means that any data of whatever mimetype is accepted and the server may choose what to return to the requesting client.

于 2013-02-08T12:34:34.653 回答
0

It's answered in the specification. See http://greenbytes.de/tech/webdav/rfc2616.html#header.accept and http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p2-semantics-21.html#header.accept

于 2013-02-08T12:48:36.857 回答