Skip to content

Commit

Permalink
[giow] (0) Handle 407 responses from proxies.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@4287 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 23, 2009
1 parent 69414c0 commit 672a2bd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
21 changes: 14 additions & 7 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -66857,25 +66857,32 @@ <h6 id=handshake><span class=secno>10.3.4.3.1 </span>Handshake</h6>
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>

Expand Down
18 changes: 14 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -75143,25 +75143,35 @@ Proxy-authorization: Basic ZWRuYW1vZGU6bm9jYXBlcyE=</pre>
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>

Expand Down

0 comments on commit 672a2bd

Please sign in to comment.