[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Captive-portals] Content Negotiation language
- To: [email protected]
- Subject: [Captive-portals] Content Negotiation language
- From: Mark Nottingham <[email protected]>
- Date: Fri, 29 Mar 2019 14:08:50 +0100
- Archived-at: <https://mailarchive.ietf.org/arch/msg/captive-portals/mVkwFBZPs03WuT3O1XDpSGYd_NQ>
- Authentication-results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnot.net header.b=c23rTJ+Y; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=d93LYRZh
- Delivered-to: [email protected]
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h=from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; s=fm2; bh=CzMnjuwMDOzbjZTOpOpCngbBqbqAz6JfV 8Htp1xfBlE=; b=c23rTJ+Y2yudIYm1e1OBXvCGFPfIYn085iNM/IakV15TV3Cz0 3drlotjtqhqN/7RAAXGj1t1XvgPjPkxcyyyHf4Ru6azgCJrp9P8peMdsK1V9MinU T9rEOGqyYGYbh3VNdGaME2ZvuRj16Du3zndQRoCqMDFWCurgLEPBAl52/MsjvSFZ clX4Y9pXQj6P8NO8A+TQlFwHiYINH/JpX0id3dJd5VIG6EvZCY1Aa+cIg7Of05mj WU6DcaF4gkVJ8+2LGIntwfeZCfALMd5xLVwpAXLCBea1rZo/We342YrofGF4vnrL Vfu6Vy4lZWSc5zYexiSTvLNlnKtwodZUbK/vA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=CzMnju wMDOzbjZTOpOpCngbBqbqAz6JfV8Htp1xfBlE=; b=d93LYRZh9UVMxU43eQMHWc fmKi2E9aTAp0kWIoWT+7klkY5IG/WottQRc7f3/VZxR5GpSY/AeIWBXp6IgbyQZV 01X8k/UUrbzvdKcTCcmdw3xvWnu4pqsKeSmPEImtTQ1BSmTFcuGE3MMNqs052HCN HU+x0hkIaeMdID/8KCYPfnMrp+827Ik3pgh+/GqF9FoXJFbbUMdF4s7xJJ3Ie9ez vzJdNgy5D4MY3UBWuU+g9wQZM3BHjC4vbBtbYRMfAy0qrtoq87XMdbcX8vxSUqC5 9/DBIp1wYA+KPvaiXitqmt7APuQuDovowLy39Y3wL6iSuJS+W7RLNJhJBCrdgB5Q ==
- List-archive: <https://mailarchive.ietf.org/arch/browse/captive-portals/>
- List-help: <mailto:[email protected]?subject=help>
- List-id: Discussion of issues related to captive portals <captive-portals.ietf.org>
- List-post: <mailto:[email protected]>
- List-subscribe: <https://www.ietf.org/mailman/listinfo/captive-portals>, <mailto:[email protected]?subject=subscribe>
- List-unsubscribe: <https://www.ietf.org/mailman/options/captive-portals>, <mailto:[email protected]?subject=unsubscribe>
In <https://tools.ietf.org/html/draft-ekwk-capport-rfc7710bis-02#section-2>:
> A captive portal MAY do content negotiation ([RFC7231] section 3.4) and attempt to redirect clients querying without an explicit indication of support for the captive portal API content type (i.e. without application/ capport+json listed explicitly anywhere within an Accept header vis. [RFC7231] section 5.3). In so doing, the captive portal SHOULD redirect the client to the value associated with the "user-portal- url" API key.
This is confusing, and not quite right on some details. I'd suggest something like:
~~~
A captive portal MAY redirect requests that do not have an Accept header field ([RFC7231] Section 5.3) containing a field item whose content-type is "application/capport+json" to the URL conveyed in the "user-portal-url" API key. When performing such content negotiation ([RFC7231] Section 3.4), captive portals need to keep in mind that such responses might be cached, and therefore SHOULD include an appropriate Vary header field ([RFC7231] Section 7.1.4) or mark them explicitly uncacheable (for example, using Cache-Control: no-store [RFC7234] Section 5.2.2.3).
~~~
--
Mark Nottingham https://www.mnot.net/