Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1092049 of Via

  • Revision slug: Web/HTTP/Headers/Via
  • Revision title: Via
  • Revision id: 1092049
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment

Revision Content

{{HTTPSidebar}}

The Via general header is added by proxies, both forward and reverse proxies, and can appear in the request headers and the response headers. It is used for tracking message forwards, avoiding request loops, and identifying the protocol capabilities of senders along the request/response chain.

Header type {{Glossary("General header")}}
{{Glossary("Forbidden header name")}} yes

Syntax

Via: [ <protocol-name> "/" ] <protocol-version> <host> [ ":" <port> ]
or
Via: [ <protocol-name> "/" ] <protocol-version> <pseudonym>

Directives

<protocol-name>
Optional. The name of the protocol used, such as "HTTP".
<protocol-version>
The version of the protocol used, such as "1.1".
<host> and <port>
Public proxy URL and port.
<pseudonym>
Name/alias of an internal proxy.

Examples

Via: 1.1 vegur
Via: HTTP/1.1 GWA
Via: 1.0 fred, 1.1 p.example.net

Specifications

Specification Title
{{RFC("7230", "Via", "5.7.1")}} Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing

Browser compatibility

{{Compat}}

See also

Revision Source

<div>{{HTTPSidebar}}</div>

<p>The <code><strong>Via</strong></code> general header is added by proxies, both forward and reverse proxies, and can appear in the request headers and the response headers. It is used for tracking message forwards, avoiding request loops, and identifying the protocol capabilities of senders along the request/response chain.</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Header type</th>
   <td>{{Glossary("General header")}}</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Forbidden header name")}}</th>
   <td>yes</td>
  </tr>
 </tbody>
</table>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox">
Via: [ &lt;protocol-name&gt; "/" ] &lt;protocol-version&gt; &lt;host&gt; [ ":" &lt;port&gt; ]
or
Via: [ &lt;protocol-name&gt; "/" ] &lt;protocol-version&gt; &lt;pseudonym&gt;
</pre>

<h2 id="Directives">Directives</h2>

<dl>
 <dt>&lt;protocol-name&gt;</dt>
 <dd>Optional. The name of the protocol used, such as "HTTP".</dd>
 <dt>&lt;protocol-version&gt;</dt>
 <dd>The version of the protocol used, such as "1.1".</dd>
 <dt>&lt;host&gt; and &lt;port&gt;</dt>
 <dd>Public proxy URL and port.</dd>
 <dt>&lt;pseudonym&gt;</dt>
 <dd>Name/alias of an internal proxy.</dd>
</dl>

<h2 id="Examples">Examples</h2>

<pre>
Via: 1.1 vegur
Via: HTTP/1.1 GWA
Via: 1.0 fred, 1.1 p.example.net
</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Title</th>
  </tr>
  <tr>
   <td>{{RFC("7230", "Via", "5.7.1")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p class="hidden">The compatibility table in this page is generated from structured data. If you’d like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data/README.md">https://github.com/mdn/browser-compat-data/README.md</a> and send us a pull request.</p>

<p>{{Compat}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{HTTPHeader("X-Forwarded-For")}}</li>
 <li><a href="https://github.com/heroku/vegur">Heroku's proxy library Vegur</a></li>
</ul>
Revert to this revision