Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: RE: Header records


Message #1 by Sam Clohesy <sam@e...> on Fri, 26 Oct 2001 12:47:58 +0100
Hi all.



Is there a way to discern header records using ASP? (Whether site uses them

and what they are?)

Maybe a servervariable ?

(I can't seem to find one?)



Thanks guys

Sam

Message #2 by "Ken Schaefer" <ken@a...> on Sat, 27 Oct 2001 20:01:30 +1000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: "Sam Clohesy" <sam@e...>

Subject: [asp_web_howto] RE: Header records



: Is there a way to discern header records using ASP? (Whether

: site uses them and what they are?)

: Maybe a servervariable ?

: (I can't seem to find one?)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



What are "header records"?!?



Do you mean HTTP Headers?



<%

For Each Key in Request.ServerVariables



    Response.Write(Key & " = " & Request.ServerVariables(Key) & "<br>" &

vbCrLf)



Next

%>



That tells you want the client sent to *your site*.



If you mean, "Does XYZ company's site use HTTP Host Headers?", then that's

easy. Do a reverse DNS lookup on the IP address, that'll tell you the A Name

record for that IP. If the DNS name is different then they must have a CNAME

alias, in which case they must be using host headers.



http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1034.html

DNS Names and Concepts



Cheers

Ken



Message #3 by Sam Clohesy <sam@e...> on Mon, 29 Oct 2001 08:59:33 -0000
Thanks Ken, thats really useful.



What I am trying to ascertain is whether a site uses header records in IIS.

(Like mysite.com. mysite.net etc) and what these headers are.



This stuff is really useful



Thanks

Sam



-----Original Message-----

From: Ken Schaefer [mailto:ken@a...]

Sent: 27 October 2001 11:02

To: ASP Web HowTo

Subject: [asp_web_howto] RE: Header records





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: "Sam Clohesy" <sam@e...>

Subject: [asp_web_howto] RE: Header records



: Is there a way to discern header records using ASP? (Whether

: site uses them and what they are?)

: Maybe a servervariable ?

: (I can't seem to find one?)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



What are "header records"?!?



Do you mean HTTP Headers?



<%

For Each Key in Request.ServerVariables



    Response.Write(Key & " = " & Request.ServerVariables(Key) & "<br>" &

vbCrLf)



Next

%>



That tells you want the client sent to *your site*.



If you mean, "Does XYZ company's site use HTTP Host Headers?", then that's

easy. Do a reverse DNS lookup on the IP address, that'll tell you the A Name

record for that IP. If the DNS name is different then they must have a CNAME

alias, in which case they must be using host headers.



http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1034.html

DNS Names and Concepts



Cheers

Ken


  Return to Index