[html5] r4287 - [giow] (0) Handle 407 responses from proxies.

whatwg at whatwg.org whatwg at whatwg.org
Thu Oct 22 21:21:20 PDT 2009


Author: ianh
Date: 2009-10-22 21:21:17 -0700 (Thu, 22 Oct 2009)
New Revision: 4287

Modified:
   complete.html
   source
Log:
[giow] (0) Handle 407 responses from proxies.

Modified: complete.html
===================================================================
--- complete.html	2009-10-23 04:09:25 UTC (rev 4286)
+++ complete.html	2009-10-23 04:21:17 UTC (rev 4287)
@@ -66857,25 +66857,32 @@
     be established.</p> <!-- we might update this as HTTP is updated,
     depending on whether it remains compatible or whatnot -->
 
-<!--(v2-ws-auth)
     <p>Otherwise, let <var title="">code</var> be the substring of
     <var title="">header</var> that starts from the byte after the
     first 0x20 byte, and ends with the byte before the second 0x20
-    byte. If there are not at least two 0x20 bytes in <var
-    title="">header</var>, then <span>fail the Web Socket
-    connection</span> and abort these steps.</p>
--->
+    byte. If there are not at least two 0x20 bytes in <var title="">header</var>, then <a href=#fail-the-web-socket-connection>fail the Web Socket
+    connection</a> and abort these steps.</p>
+
 <!--(v2-redirect)
     <p>If <var title="">code</var>, interpreted as ASCII, is either
     "<code title="">301</code>", "<code title="">302</code>", "<code
     title="">303</code>", "<code title="">307</code>", then let <var
-    title="">mode</var> be <i title="">redirect</i>.
+    title="">mode</var> be <i title="">redirect</i>.</p>
 -->
 <!--(v2-ws-auth)
     <p>If <var title="">code</var>, interpreted as ASCII, is "<code
     title="">401</code>", then let <var title="">mode</var> be <i
-    title="">authenticate</i>.
+    title="">authenticate</i>.</p>
 -->
+
+    <p>If <var title="">code</var>, interpreted as ASCII, is "<code title="">407</code>", then either close the connection and jump
+    back to step 2, providing appropriate authentication information,
+    or <a href=#fail-the-web-socket-connection>fail the Web Socket connection</a>. 407 is the code
+    used by HTTP meaning "Proxy Authentication Required". User agents
+    that support proxy authentication must interpret the response as
+    defined by HTTP (e.g. to find and interpret the <code title=http-Proxy-Authenticate>Proxy-Authenticate</code>
+    header).</p>
+
     <p>Otherwise, <a href=#fail-the-web-socket-connection>fail the Web Socket connection</a> and
     abort these steps.</p>
 

Modified: source
===================================================================
--- source	2009-10-23 04:09:25 UTC (rev 4286)
+++ source	2009-10-23 04:21:17 UTC (rev 4287)
@@ -75143,25 +75143,35 @@
     be established.</p> <!-- we might update this as HTTP is updated,
     depending on whether it remains compatible or whatnot -->
 
-<!--(v2-ws-auth)
     <p>Otherwise, let <var title="">code</var> be the substring of
     <var title="">header</var> that starts from the byte after the
     first 0x20 byte, and ends with the byte before the second 0x20
     byte. If there are not at least two 0x20 bytes in <var
     title="">header</var>, then <span>fail the Web Socket
     connection</span> and abort these steps.</p>
--->
+
 <!--(v2-redirect)
     <p>If <var title="">code</var>, interpreted as ASCII, is either
     "<code title="">301</code>", "<code title="">302</code>", "<code
     title="">303</code>", "<code title="">307</code>", then let <var
-    title="">mode</var> be <i title="">redirect</i>.
+    title="">mode</var> be <i title="">redirect</i>.</p>
 -->
 <!--(v2-ws-auth)
     <p>If <var title="">code</var>, interpreted as ASCII, is "<code
     title="">401</code>", then let <var title="">mode</var> be <i
-    title="">authenticate</i>.
+    title="">authenticate</i>.</p>
 -->
+
+    <p>If <var title="">code</var>, interpreted as ASCII, is "<code
+    title="">407</code>", then either close the connection and jump
+    back to step 2, providing appropriate authentication information,
+    or <span>fail the Web Socket connection</span>. 407 is the code
+    used by HTTP meaning "Proxy Authentication Required". User agents
+    that support proxy authentication must interpret the response as
+    defined by HTTP (e.g. to find and interpret the <code
+    title="http-Proxy-Authenticate">Proxy-Authenticate</code>
+    header).</p>
+
     <p>Otherwise, <span>fail the Web Socket connection</span> and
     abort these steps.</p>
 




More information about the Commit-Watchers mailing list