[Prev][Next][Index][Thread]

RE: <Question> User-Agent



Thanh:

 The user-agent field for Netscape 3.0 is "User-Agent: Mozilla/3.0 (WinNT;1)" - 
quotes are mine.     The info in the parenthesis depends on the client o/s.


Jay O'Leary
jay_oleary@onesource.com





	devspb @ landmark.com (Steve Barnes)
12/03/96 05:46 PM
To: thnguyen @ Adobe.COM ("'Thanh Nguyen'") @ internet
cc: www-lib @ w3.org ("'www-lib@w3.org'") @ internet (bcc: Jay O'Leary)
Subject: RE: <Question>  User-Agent

Thanh,
Refer to the following doc for a more complete discussion.. Tip search the doc 
for user-agent..

http://www.w3.org/pub/WWW/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-07.txt

This is the http spec and is good enough to understand the http request header 
that you must initialize to act like a browser (aka your web bot).. For the 
actual client name that MS IE or netscape use in this field to fool the the 
server, I have not yet dumpped a header to check... I'll try to find time soon 
to do so.. In the meantime..DOES ANYONE KNOW OFFHAND WHAT HE MUST USE FOR 
EITHER MSIE OR NAVIGATOR?????
----------
From:  Thanh Nguyen[SMTP:thnguyen@Adobe.COM]
Sent:  Tuesday, December 03, 1996 7:18 AM
To:  Steve Barnes
Subject:  RE: <Question>  User-Agent

Thank you for your help.  My next question is how do I "fake" as a browser
?  What do I need to put in my header so that the web site can't tell.

I have tried many cases already.  I tried "IE 3.0", "Internet Explore 3.0"
and "Netscape 3.0" but I haven't hit the "jackpot" yet.  Any hint from you?

Once again, thank you for your help.  I am looking forward to your reply.

Thanh Nguyen.
(206)470-7290
thnguyen@adobe.com


>Thanh,
>Unfortunately, many web developers recognize the fact that both MS and
>Netscape for example deal with HTML tags differently. For this reason,
>many web sites are developed to first check on the browser accessing the
>site and build output HTML according to browser's capabilities..
>
>I know this is a problem for what you are doing, but thuis is the real world.
>
>If you are persistent to crack the problem and are only interested in
>getting consistent data, you can fool the web site into thinking that you
>are a broswer of a particular type.. You do this in the http header that
>you send the server..
>
>Hope this helps.
>Steve Barnes :{)
>
>----------
>From:   Thanh Nguyen[SMTP:thnguyen@Adobe.COM]
>Sent:   Monday, December 02, 1996 8:57 AM
>To:     www-lib@w3.org
>Subject:        <Question>  User-Agent
>
>Hi,
>
>I have an app that can download contents from the web.  I've noticed that
>for some sites, I recieve different HTML source files as it would in
>Netscape or Internet Explore.
>
>My guess is that somehow the server which I request the contents from sends
>different file to its clients depending on the name of the User-Agent.
>
>I wonder if this is true.  If this is the case, what the User-Agent should
>I use to recieve the same HTML file as in Netscape or Internet Explore.
>
>Any feed back is greatly appreciated.  Thanks.
>
>Thanh Nguyen
>(206)470-7290
>thnguyen@adobe.com