Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is HTTP_VIA?

Status
Not open for further replies.

PepperPepsi

Programmer
Aug 3, 2000
241
US
hi,<br><br>does anyone know what is HTTP_VIA? i only know that it is one of the ALL_HTTP Variable<br><br><br>thanks<br>PepperPepsi
 
are you sure, otherwise it would have been listed in the MSDN. under ServerVariables <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
This code will generate a list of all the Server Variables.&nbsp;&nbsp;I don't see any mention of an HTTP_VIA and I've never heard of this variable.<br><br>&lt;TABLE border=1 width=&quot;100%&quot;&gt;<br>&lt;TR&gt;&lt;TD&gt;&lt;B&gt;Server Variable&lt;/B&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;Value&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;<br>&lt;% For Each name In Request.ServerVariables %&gt; <br>&lt;TR&gt;&lt;TD&gt; &lt;%= name %&gt; &lt;/TD&gt;&lt;TD&gt;&nbsp;&nbsp;&lt;%= Request.ServerVariables(name) %&gt; &lt;/TD&gt;&lt;/TR&gt;<br>&lt;% Next %&gt; <br>&lt;/TABLE&gt;<br><br>This url on your IIS 4.0 server will give you a list of all the variables along with their meanings.&nbsp;&nbsp;And again, HTTP_VIA isn't mentioned.<br><br><A HREF=" TARGET="_new"> <p> Jeff Friestman<br><a href=mailto: > </a><br><a href= View my Brainbench transcript</a><br>Brainbench 'Most Valuable Professional' for ASP<br>
Brainbench 'Most Valuable Professional' for JavaScript<br>
 
Hi, this is what appear in one of my visitor's ALL_HTTP<br><br>HTTP_ACCEPT:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* HTTP_ACCEPT_LANGUAGE:de HTTP_CONNECTION:keep-alive HTTP_HOST:<A HREF=" TARGET="_new"> HTTP_USER_AGENT:Mozilla/4.7 [de] (WinNT) HTTP_VIA:1.0 proxy1.gefm.eur.deuba.com:3128 (Squid/2.2.STABLE5/db2.0), 1.0 proxy.gate.eur.deuba.com:3128 (Squid/2.2.4) HTTP_ACCEPT_ENCODING:gzip HTTP_X_FORWARDED_FOR:unknown, unknown HTTP_CACHE_CONTROL:max-age=259200 <br><br>as you can see the HTTP_VIA: 1.0 proxy1.gefm.eur.debuba.com:3128<br>is that a domain name or something?<br><br>thanks<br>Chiu
 
Have you tried looking in your own MSDN, or MSDN online? <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
I searched several sites on the Internet and this is what I came up with<br><br>&nbsp;- HTTP_VIA seems to be information regarding proxy servers that forward the client's request along the wire.<br><br>&nbsp;- It becomes different in the case of multiple hops - the VIA field is supposed to have an entry from each proxy along the way, like a netnews Path: header.<br><br>&nbsp;- If the web browser proxies are setup it is the name and version of the web cache.<br><br>&nbsp;- Basically, if you see this environment variable in the ALL_HTTP, then you know your client/user is using a Proxy server.&nbsp;&nbsp;The name of the proxy server will show up here.<br><br>Hope this helps.<br> <p> Jeff Friestman<br><a href=mailto: > </a><br><a href= View my Brainbench transcript</a><br>Brainbench 'Most Valuable Professional' for ASP<br>
Brainbench 'Most Valuable Professional' for JavaScript<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top