AndreaNobili
AndreaNobili

Reputation: 42957

Some information about Accept Header when I have an URL that end with a specific extension (like .xml)

I have a question about Accept HTTP Header.

If I have a link ending with a specific extension, like in this case where my URL end with .xml:

<a id="writeXmlExt" class="writeXmlLink" href="<c:url value="/messageconverters/xml.xml" />">Write XML via ".xml"</a>

I would know if using URL that ending with an extension I am automatically setting the Accept header value related to the extension used.

For example, in the previous link is auomatically setted the Accept Header to the value: application/xml ?

Thank you

Andrea

Upvotes: 0

Views: 54

Answers (1)

Julian Reschke
Julian Reschke

Reputation: 42017

No, the Accept header field isn't changed based on the href.

Upvotes: 1

Related Questions