HTTP Content Negotiation

Discussions center on using HTTP Accept headers, Content-Type, and content negotiation to serve different formats or versions of content, rather than relying on URL paths or other non-standard methods, often critiquing unusual HTTP use cases.

📉 Falling 0.5x Web Development
3,123
Comments
20
Years Active
5
Top Authors
#7484
Topic ID

Activity Over Time

2007
5
2008
16
2009
63
2010
62
2011
136
2012
209
2013
189
2014
144
2015
139
2016
160
2017
170
2018
142
2019
146
2020
208
2021
227
2022
308
2023
272
2024
260
2025
252
2026
15

Keywords

e.g PHP CoreQueryParameters WinInet CR OK MIME HTTP GET GMT http content header accept server request type specify headers clients

Sample Comments

csirac2 Nov 23, 2014 View on HN

In this specific use-case wouldn't plain old content-negotiation/accept headers work?

kiitos Aug 1, 2023 View on HN

This suggests you just don't grok HTTP semantics.

mnot Nov 30, 2015 View on HN

See: https://lists.w3.org/Archives/Public/ietf-http-wg/2013JanMar...

Aqua_Geek May 21, 2020 View on HN

I don't follow. How does the "Accept" header factor in here?

NicoJuicy Mar 14, 2019 View on HN

The accept header could fix this easily if no third parties are involved

detaro Apr 25, 2020 View on HN

Why wouldn't this just be a new Content-Type to request?

skilled Dec 8, 2022 View on HN

Wouldn't this be fixed by checking Content-Type? It's only one way trip each time.

Skunkleton Jan 3, 2020 View on HN

It sounds like you have a very unusual usecase for HTTP.

pfraze Aug 10, 2013 View on HN

It's already a pretty chatty protocol; if you can support the HEAD request, why not do so and save the bandwidth?

eropple Mar 14, 2019 View on HN

I could be wrong, but my understanding matches yours and that, this data is not ever read back in by common HTTP clients (browsers, curl, etc.).