473,785 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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;
OfficeLiveConne ctor.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 2122
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;
OfficeLiveConne ctor.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_U SER_AGENT") -
i've compared it to request.userage nt 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;
OfficeLiveConne ctor.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;
OfficeLiveConne ctor.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
5036
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 (preg_match("/Mozilla/i", $info)) {
1
2143
by: ruggierorizzi | last post by:
Hi again, what is exact sense of $_SERVER output? Tnx, bye
2
7977
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
2743
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, this part of his (and all the other similar articles) doesn't make sense to me. session_start(); $fingerprint = 'SECRETSTUFF' . $_SERVER;
1
3011
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
3953
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
4167
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 below goes straight to the else statement, In actual fact I'm using IE. Where I'm I going wrong? #!/usr/bin/perl print "Content-type:text/html\n\n";
2
5576
by: kailashchandra | last post by:
<html> <head> <title>PHP Test</title> </head> <body> <?php echo $_SERVER; ?> </body> </html>
1
10870
by: Moiseszaragoza | last post by:
I am wondering what is the equivalent of Request.ServerVariables("HTTP_USER_AGENT") in C#? Thanks
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9485
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8986
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.