473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

HTTP_USER_AGENT too long for asp.net 1.1??

hi:

i have an asp.net 1.1 app. when i visit the site with my normal browser (ie7
on xp), i get 'default' info in the request.browser object (Type = Unknown,
Name = Unknown, Version = 0.0, etc.). when i visit with firefox or safari,
the results come back as expected. i've also used 'fiddler' to set my user
agent string to ie7 and 8 and, here also, success.

as far as i can guess, it seems that my user agent string gets 'choked' upon
somewhere in the process and either none of the <filtersin the browserCaps
match or none of them even run. i don't get any exceptions and i've browsed
thru the event logs, but found no clues.

the only thing about my ua string that jumps out at me is its sheer enormity:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET
CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
..NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022;
OfficeLiveConnector.1.1; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729)

is there something wrong with my IE?
if .net 1.1 *should* be handling this size of ua string, is there a bug?

thanx for any assistance...!
Sep 4 '08 #1
3 2106
iis has settings (and some proxies) to limit the length. check the agent
string in the request to see if its been truncated. the browsercap
depends on seeing the trailing ")". you could modify your browsercap
file to not require this.

in general its not a good idea to use browsercaps anyway, as it pretty
unreliable. you should use client script, css and markup to get browser
friendly html. see any site on cross browser markup.

-- bruce (sqlwork.com)

bitbucket wrote:
hi:

i have an asp.net 1.1 app. when i visit the site with my normal browser (ie7
on xp), i get 'default' info in the request.browser object (Type = Unknown,
Name = Unknown, Version = 0.0, etc.). when i visit with firefox or safari,
the results come back as expected. i've also used 'fiddler' to set my user
agent string to ie7 and 8 and, here also, success.

as far as i can guess, it seems that my user agent string gets 'choked' upon
somewhere in the process and either none of the <filtersin the browserCaps
match or none of them even run. i don't get any exceptions and i've browsed
thru the event logs, but found no clues.

the only thing about my ua string that jumps out at me is its sheer enormity:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET
CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
.NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022;
OfficeLiveConnector.1.1; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729)

is there something wrong with my IE?
if .net 1.1 *should* be handling this size of ua string, is there a bug?

thanx for any assistance...!
Sep 4 '08 #2
thanx for your reply, bruce.

i'm not sure what you mean by, "check the agent string in the request ." in
my original post the ua string i showed was from request("HTTP_USER_AGENT") -
i've compared it to request.useragent and they are identical, as one would
expect. were you referring to some other chunk of data? and what would i
compare it to to see if it's truncated?

thanx...

"bruce barker" wrote:
iis has settings (and some proxies) to limit the length. check the agent
string in the request to see if its been truncated. the browsercap
depends on seeing the trailing ")". you could modify your browsercap
file to not require this.

in general its not a good idea to use browsercaps anyway, as it pretty
unreliable. you should use client script, css and markup to get browser
friendly html. see any site on cross browser markup.

-- bruce (sqlwork.com)

bitbucket wrote:
hi:

i have an asp.net 1.1 app. when i visit the site with my normal browser (ie7
on xp), i get 'default' info in the request.browser object (Type = Unknown,
Name = Unknown, Version = 0.0, etc.). when i visit with firefox or safari,
the results come back as expected. i've also used 'fiddler' to set my user
agent string to ie7 and 8 and, here also, success.

as far as i can guess, it seems that my user agent string gets 'choked' upon
somewhere in the process and either none of the <filtersin the browserCaps
match or none of them even run. i don't get any exceptions and i've browsed
thru the event logs, but found no clues.

the only thing about my ua string that jumps out at me is its sheer enormity:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET
CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
.NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022;
OfficeLiveConnector.1.1; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729)

is there something wrong with my IE?
if .net 1.1 *should* be handling this size of ua string, is there a bug?

thanx for any assistance...!
Sep 4 '08 #3
i think i've figured out my problem...just not sure what the solution is
(aside from modifying registry keys!). see:

https://connect.microsoft.com/Visual...dbackID=362923

"bitbucket" wrote:
hi:

i have an asp.net 1.1 app. when i visit the site with my normal browser (ie7
on xp), i get 'default' info in the request.browser object (Type = Unknown,
Name = Unknown, Version = 0.0, etc.). when i visit with firefox or safari,
the results come back as expected. i've also used 'fiddler' to set my user
agent string to ie7 and 8 and, here also, success.

as far as i can guess, it seems that my user agent string gets 'choked' upon
somewhere in the process and either none of the <filtersin the browserCaps
match or none of them even run. i don't get any exceptions and i've browsed
thru the event logs, but found no clues.

the only thing about my ua string that jumps out at me is its sheer enormity:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET
CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30;
.NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.5.21022;
OfficeLiveConnector.1.1; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729)

is there something wrong with my IE?
if .net 1.1 *should* be handling this size of ua string, is there a bug?

thanx for any assistance...!
Sep 4 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sims | last post by:
Hi, if i use... // php $info = getenv("HTTP_USER_AGENT"); // I noticed that Mozzila and Netscape <6(?) both use the same Agent. // so i was thinking of if...
1
by: ruggierorizzi | last post by:
Hi again, what is exact sense of $_SERVER output? Tnx, bye
2
by: Sharon | last post by:
Can I use request.servervariables("HTTP_USER_AGENT") to determine if the user has Firefox or Internet Explorer? Is the return string differentiated enough? Thanks for any input.
7
by: Marcus | last post by:
I have read quite a few articles on "fingerprinting" a user when they start a session. Chris Shiflett has a good article here: http://shiflett.org/articles/the-truth-about-sessions However,...
1
by: juglesh | last post by:
are $_SERVER in php and navigator.userAgent in js the same thing? always? I just need to determine if the browser is IE5+ on win32 (.png issues).
9
by: luke | last post by:
Hi everybody, please, can someone explain me this behaviour. I have the following piece of code: long long ll; unsigned int i = 2; ll = -1 * i; printf("%lld\n", ll);
7
by: patelxxx | last post by:
When I run the code below, the $ENV{'HTTP_USER_AGENT'} is coming up blank, I'm saved the file under .pl and .cgi extensions and still I can't display the browser name. For this reason the code...
2
by: kailashchandra | last post by:
<html> <head> <title>PHP Test</title> </head> <body> <?php echo $_SERVER; ?> </body> </html>
1
by: Moiseszaragoza | last post by:
I am wondering what is the equivalent of Request.ServerVariables("HTTP_USER_AGENT") in C#? Thanks
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.