There are some Requests that occur that have a NULL UserAgent. Some of these
are legitimate crawlers (e.g., Overture's crawler), and I'm attempting to
adjust my <browserCaps> to correctly classify crawlers.
In an attempt to capture browsers with (UserAgent == null), I've added a
case like this:
<filter>
<case match="^$">
crawler=true
</case>
</filter>
But that only seems to trap the empty string (as expected, really).
Does anyone know a way to match the null string?
Thanks,
j 10 2609
Hi Jason,
Thank you for posting in community.
From your description, you're wondering how to set the browserCap' filter
so as to capture those clients whose useragent is null, yes?
Regarding on the issue, I am
finding proper resource to assist you and we will update as soon as posible.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security(This posting is provided "AS IS",
with no warranties, and confers no rights.)
Yes, this is what I want to do (i.e., match clients with UserAgent==null )
j
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:zz******** ******@cpmsftng xa07.phx.gbl... Hi Jason,
Thank you for posting in community. From your description, you're wondering how to set the browserCap' filter so as to capture those clients whose useragent is null, yes? Regarding on the issue, I am finding proper resource to assist you and we will update as soon as
posible. Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security(This posting is provided "AS IS", with no warranties, and confers no rights.)
Hi Jason,
I am currently researching your issue and attempting to repro. I will post
back here ASAP. It will be sometime tomorrow.
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support ja******@online .microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- From: "Jason Collins" <jc************ *@point2.com> References: <u9************ **@TK2MSFTNGP11 .phx.gbl>
<zz************ **@cpmsftngxa07 .phx.gbl>Subject: Re: <browserCaps> and NULL UserAgent Date: Mon, 23 Feb 2004 08:54:02 -0600 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <#D************ *@TK2MSFTNGP11. phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet NNTP-Posting-Host: codemonkey.net 142.165.166.48 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2129 73 X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
Yes, this is what I want to do (i.e., match clients with UserAgent==null ) j
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message news:zz******* *******@cpmsftn gxa07.phx.gbl.. . Hi Jason,
Thank you for posting in community. From your description, you're wondering how to set the browserCap' filter so as to capture those clients whose useragent is null, yes? Regarding on the issue, I am finding proper resource to assist you and we will update as soon as posible. Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security(This posting is provided "AS IS", with no warranties, and confers no rights.)
Hi Jason,
I'm still researching this. It's going to be a bit longer before I'll have
something for you.
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support ja******@online .microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- X-Tomcat-ID: 749098030 References: <u9************ **@TK2MSFTNGP11 .phx.gbl>
<zz************ **@cpmsftngxa07 .phx.gbl>
<#D************ *@TK2MSFTNGP11. phx.gbl>MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) Organization : Microsoft Date: Mon, 23 Feb 2004 23:56:52 GMT Subject: Re: <browserCaps> and NULL UserAgent X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet Message-ID: <CR************ **@cpmsftngxa06 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet Lines: 47 Path: cpmsftngxa06.ph x.gbl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2131 35 NNTP-Posting-Host: tomcatimport2.p hx.gbl 10.201.218.182
Hi Jason,
I am currently researching your issue and attempting to repro. I will
postback here ASAP. It will be sometime tomorrow.
Jim Cheshire, MCSE, MCSD [MSFT] ASP.NET Developer Support ja******@onlin e.microsoft.com
This post is provided as-is with no warranties and confers no rights.
--------------------From: "Jason Collins" <jc************ *@point2.com> References: <u9************ **@TK2MSFTNGP11 .phx.gbl> <zz*********** ***@cpmsftngxa0 7.phx.gbl>Subject: Re: <browserCaps> and NULL UserAgent Date: Mon, 23 Feb 2004 08:54:02 -0600 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <#D************ *@TK2MSFTNGP11. phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet NNTP-Posting-Host: codemonkey.net 142.165.166.48 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2129 73 X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
Yes, this is what I want to do (i.e., match clients with UserAgent==null ) j
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message news:zz****** ********@cpmsft ngxa07.phx.gbl. .. Hi Jason,
Thank you for posting in community. From your description, you're wondering how to set the browserCap'
filter so as to capture those clients whose useragent is null, yes? Regarding on the issue, I am finding proper resource to assist you and we will update as soon as posible. Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security(This posting is provided "AS IS", with no warranties, and confers no rights.)
Hi Jason,
I have conferred with all of the experts, and the bottom line is that this
cannot be done. You can match an empty string, but you cannot match
something that is undefined. In order to match something with RegEx, you
must first define it.
In the process of troubleshooting your issue, I was pointed at a really
cool tool that I thought I'd share with you. Here it is: http://www.gotdotnet.com/Community/U...mpleGuid=C712F
2DF-B026-4D58-8961-4EE2729D7322
Thanks.
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support ja******@online .microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- X-Tomcat-ID: 713102383 References: <u9************ **@TK2MSFTNGP11 .phx.gbl>
<zz************ **@cpmsftngxa07 .phx.gbl>
<#D************ *@TK2MSFTNGP11. phx.gbl>
<CR************ **@cpmsftngxa06 .phx.gbl>MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) Organization : Microsoft Date: Tue, 24 Feb 2004 23:25:19 GMT Subject: Re: <browserCaps> and NULL UserAgent X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet Message-ID: <l7************ **@cpmsftngxa10 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet Lines: 75 NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG XA06.phx.gbl!cp msftngxa10.phx. gbl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2134 09
Hi Jason,
I'm still researching this. It's going to be a bit longer before I'll
havesomething for you.
Jim Cheshire, MCSE, MCSD [MSFT] ASP.NET Developer Support ja******@onlin e.microsoft.com
This post is provided as-is with no warranties and confers no rights.
--------------------X-Tomcat-ID: 749098030 References: <u9************ **@TK2MSFTNGP11 .phx.gbl> <zz*********** ***@cpmsftngxa0 7.phx.gbl> <#D*********** **@TK2MSFTNGP11 .phx.gbl>MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) Organizatio n: Microsoft Date: Mon, 23 Feb 2004 23:56:52 GMT Subject: Re: <browserCaps> and NULL UserAgent X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet Message-ID: <CR************ **@cpmsftngxa06 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet Lines: 47 Path: cpmsftngxa06.ph x.gbl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2131 35 NNTP-Posting-Host: tomcatimport2.p hx.gbl 10.201.218.182
Hi Jason,
I am currently researching your issue and attempting to repro. I will postback here ASAP. It will be sometime tomorrow.
Jim Cheshire, MCSE, MCSD [MSFT] ASP.NET Developer Support ja******@onli ne.microsoft.co m
This post is provided as-is with no warranties and confers no rights.
--------------------From: "Jason Collins" <jc************ *@point2.com> References : <u9************ **@TK2MSFTNGP11 .phx.gbl> <zz********** ****@cpmsftngxa 07.phx.gbl>Subject: Re: <browserCaps> and NULL UserAgent Date: Mon, 23 Feb 2004 08:54:02 -0600 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <#D************ *@TK2MSFTNGP11. phx.gbl> Newsgroups : microsoft.publi c.dotnet.framew ork.aspnet NNTP-Posting-Host: codemonkey.net 142.165.166.48 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl Xref: cpmsftngxa06.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:2129 73X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
Yes, this is what I want to do (i.e., match clients with UserAgent==null ) j
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message news:zz***** *********@cpmsf tngxa07.phx.gbl ... Hi Jason,
Thank you for posting in community. From your description, you're wondering how to set the browserCap'filter so as to capture those clients whose useragent is null, yes? Regarding on the issue, I am finding proper resource to assist you and we will update as soon as posible.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security(This posting is provided "AS
IS", with no warranties, and confers no rights.)
Perhaps I'm missing something. Why not just test the
Request.Headers["User-Agent"] against null?
--
Thanks,
Eric Lawrence
Program Manager
Assistance and Worldwide Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jim Cheshire [MSFT]" <ja******@onlin e.microsoft.com > wrote in message
news:kz******** ******@cpmsftng xa06.phx.gbl... Hi Jason,
I have conferred with all of the experts, and the bottom line is that this cannot be done. You can match an empty string, but you cannot match something that is undefined. In order to match something with RegEx, you must first define it.
In the process of troubleshooting your issue, I was pointed at a really cool tool that I thought I'd share with you. Here it is:
http://www.gotdotnet.com/Community/U...mpleGuid=C712F 2DF-B026-4D58-8961-4EE2729D7322
Thanks.
Jim Cheshire, MCSE, MCSD [MSFT] ASP.NET Developer Support ja******@online .microsoft.com
This post is provided as-is with no warranties and confers no rights.
--------------------X-Tomcat-ID: 713102383 References: <u9************ **@TK2MSFTNGP11 .phx.gbl> <zz************ **@cpmsftngxa07 .phx.gbl> <#D************ *@TK2MSFTNGP11. phx.gbl> <CR************ **@cpmsftngxa06 .phx.gbl>MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) Organization : Microsoft Date: Tue, 24 Feb 2004 23:25:19 GMT Subject: Re: <browserCaps> and NULL UserAgent X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet Message-ID: <l7************ **@cpmsftngxa10 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet Lines: 75 NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG XA06.phx.gbl!cp msftngxa10.phx. gbl Xref: cpmsftngxa06.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:2134 09 Hi Jason,
I'm still researching this. It's going to be a bit longer before I'll
havesomething for you.
Jim Cheshire, MCSE, MCSD [MSFT] ASP.NET Developer Support ja******@onlin e.microsoft.com
This post is provided as-is with no warranties and confers no rights.
--------------------X-Tomcat-ID: 749098030 References: <u9************ **@TK2MSFTNGP11 .phx.gbl> <zz*********** ***@cpmsftngxa0 7.phx.gbl> <#D*********** **@TK2MSFTNGP11 .phx.gbl>MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) Organizatio n: Microsoft Date: Mon, 23 Feb 2004 23:56:52 GMT Subject: Re: <browserCaps> and NULL UserAgent X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet Message-ID: <CR************ **@cpmsftngxa06 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet Lines: 47 Path: cpmsftngxa06.ph x.gbl Xref: cpmsftngxa06.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:2131 35NNTP-Posting-Host: tomcatimport2.p hx.gbl 10.201.218.182
Hi Jason,
I am currently researching your issue and attempting to repro. I will postback here ASAP. It will be sometime tomorrow.
Jim Cheshire, MCSE, MCSD [MSFT] ASP.NET Developer Support ja******@onli ne.microsoft.co m
This post is provided as-is with no warranties and confers no rights.
-------------------- From: "Jason Collins" <jc************ *@point2.com> References : <u9************ **@TK2MSFTNGP11 .phx.gbl> <zz********** ****@cpmsftngxa 07.phx.gbl> Subject: Re: <browserCaps> and NULL UserAgent Date: Mon, 23 Feb 2004 08:54:02 -0600 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <#D************ *@TK2MSFTNGP11. phx.gbl> Newsgroups : microsoft.publi c.dotnet.framew ork.aspnet NNTP-Posting-Host: codemonkey.net 142.165.166.48 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2129 73X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
Yes, this is what I want to do (i.e., match clients with
UserAgent==null )j
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message news:zz***** *********@cpmsf tngxa07.phx.gbl ... > Hi Jason, > > Thank you for posting in community. > From your description, you're wondering how to set the browserCap'
filter> so as to capture those clients whose useragent is null, yes? > Regarding on the issue, I am > finding proper resource to assist you and we will update as soon as posible. > > Regards, > > Steven Cheng > Microsoft Online Support > > Get Secure! www.microsoft.com/security(This posting is provided "AS IS",> with no warranties, and confers no rights.) >
Because I'm want to do this centrally in the machine.config' s <browserCaps>
so that it doesn't litter my code all over the place.
j
"Eric Lawrence [MSFT]" <e_********@hot mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Perhaps I'm missing something. Why not just test the Request.Headers["User-Agent"] against null?
-- Thanks,
Eric Lawrence Program Manager Assistance and Worldwide Services
This posting is provided "AS IS" with no warranties, and confers no
rights. "Jim Cheshire [MSFT]" <ja******@onlin e.microsoft.com > wrote in message news:kz******** ******@cpmsftng xa06.phx.gbl... Hi Jason,
I have conferred with all of the experts, and the bottom line is that
this cannot be done. You can match an empty string, but you cannot match something that is undefined. In order to match something with RegEx,
you must first define it.
In the process of troubleshooting your issue, I was pointed at a really cool tool that I thought I'd share with you. Here it is:
http://www.gotdotnet.com/Community/U...mpleGuid=C712F 2DF-B026-4D58-8961-4EE2729D7322
Thanks.
Jim Cheshire, MCSE, MCSD [MSFT] ASP.NET Developer Support ja******@online .microsoft.com
This post is provided as-is with no warranties and confers no rights.
--------------------X-Tomcat-ID: 713102383 References: <u9************ **@TK2MSFTNGP11 .phx.gbl> <zz************ **@cpmsftngxa07 .phx.gbl> <#D************ *@TK2MSFTNGP11. phx.gbl> <CR************ **@cpmsftngxa06 .phx.gbl>MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) Organization : Microsoft Date: Tue, 24 Feb 2004 23:25:19 GMT Subject: Re: <browserCaps> and NULL UserAgent X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet Message-ID: <l7************ **@cpmsftngxa10 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet Lines: 75 NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG XA06.phx.gbl!cp msftngxa10.phx. gbl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2134 09 Hi Jason,
I'm still researching this. It's going to be a bit longer before I'll
havesomething for you.
Jim Cheshire, MCSE, MCSD [MSFT] ASP.NET Developer Support ja******@onlin e.microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- >X-Tomcat-ID: 749098030 >References: <u9************ **@TK2MSFTNGP11 .phx.gbl> <zz*********** ***@cpmsftngxa0 7.phx.gbl> <#D*********** **@TK2MSFTNGP11 .phx.gbl> >MIME-Version: 1.0 >Content-Type: text/plain >Content-Transfer-Encoding: 7bit >From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) >Organizatio n: Microsoft >Date: Mon, 23 Feb 2004 23:56:52 GMT >Subject: Re: <browserCaps> and NULL UserAgent >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet >Message-ID: <CR************ **@cpmsftngxa06 .phx.gbl> >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet >Lines: 47 >Path: cpmsftngxa06.ph x.gbl >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2131 35>NNTP-Posting-Host: tomcatimport2.p hx.gbl 10.201.218.182 > >Hi Jason, > >I am currently researching your issue and attempting to repro. I will post >back here ASAP. It will be sometime tomorrow. > >Jim Cheshire, MCSE, MCSD [MSFT] >ASP.NET >Developer Support >ja******@onli ne.microsoft.co m > >This post is provided as-is with no warranties and confers no rights. > > >-------------------- >>From: "Jason Collins" <jc************ *@point2.com> >>References : <u9************ **@TK2MSFTNGP11 .phx.gbl> ><zz********** ****@cpmsftngxa 07.phx.gbl> >>Subject: Re: <browserCaps> and NULL UserAgent >>Date: Mon, 23 Feb 2004 08:54:02 -0600 >>Lines: 24 >>X-Priority: 3 >>X-MSMail-Priority: Normal >>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 >>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 >>Message-ID: <#D************ *@TK2MSFTNGP11. phx.gbl> >>Newsgroups : microsoft.publi c.dotnet.framew ork.aspnet >>NNTP-Posting-Host: codemonkey.net 142.165.166.48 >>Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl >>Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2129 73>>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet >> >>Yes, this is what I want to do (i.e., match clients with UserAgent==null )>>j >> >>"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message >>news:zz***** *********@cpmsf tngxa07.phx.gbl ... >>> Hi Jason, >>> >>> Thank you for posting in community. >>> From your description, you're wondering how to set the browserCap' filter >>> so as to capture those clients whose useragent is null, yes? >>> Regarding on the issue, I am >>> finding proper resource to assist you and we will update as soon as >>posible. >>> >>> Regards, >>> >>> Steven Cheng >>> Microsoft Online Support >>> >>> Get Secure! www.microsoft.com/security(This posting is provided "AS IS",>>> with no warranties, and confers no rights.) >>> >> >> >> > >
Jason,
That's just not going to be possible via the machine.config file. There is
no Regular Expression that will match a value that is not defined.
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support ja******@online .microsoft.com
This post is provided as-is with no warranties and confers no rights.
-------------------- From: "Jason Collins" <jc************ *@point2.com> References: <u9************ **@TK2MSFTNGP11 .phx.gbl>
<zz************ **@cpmsftngxa07 .phx.gbl>
<#D************ *@TK2MSFTNGP11. phx.gbl>
<CR************ **@cpmsftngxa06 .phx.gbl>
<l7************ **@cpmsftngxa10 .phx.gbl>
<kz************ **@cpmsftngxa06 .phx.gbl>
<#E************ **@TK2MSFTNGP11 .phx.gbl>Subject: Re: <browserCaps> and NULL UserAgent Date: Thu, 26 Feb 2004 16:23:54 -0600 Lines: 175 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <eg************ **@TK2MSFTNGP09 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet NNTP-Posting-Host: codemonkey.net 142.165.166.48 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2140 88 X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
Because I'm want to do this centrally in the machine.config' s <browserCaps> so that it doesn't litter my code all over the place.
j
"Eric Lawrence [MSFT]" <e_********@hot mail.com> wrote in message news:%2******* *********@TK2MS FTNGP11.phx.gbl ... Perhaps I'm missing something. Why not just test the Request.Headers["User-Agent"] against null?
-- Thanks,
Eric Lawrence Program Manager Assistance and Worldwide Services
This posting is provided "AS IS" with no warranties, and confers no rights. "Jim Cheshire [MSFT]" <ja******@onlin e.microsoft.com > wrote in message news:kz******** ******@cpmsftng xa06.phx.gbl... > Hi Jason, > > I have conferred with all of the experts, and the bottom line is thatthis > cannot be done. You can match an empty string, but you cannot match > something that is undefined. In order to match something with RegEx,you > must first define it. > > In the process of troubleshooting your issue, I was pointed at a really > cool tool that I thought I'd share with you. Here it is: > >
http://www.gotdotnet.com/Community/U...ampleGuid=C712
F > 2DF-B026-4D58-8961-4EE2729D7322 > > Thanks. > > Jim Cheshire, MCSE, MCSD [MSFT] > ASP.NET > Developer Support > ja******@online .microsoft.com > > This post is provided as-is with no warranties and confers no rights. > > -------------------- > >X-Tomcat-ID: 713102383 > >References: <u9************ **@TK2MSFTNGP11 .phx.gbl> > <zz************ **@cpmsftngxa07 .phx.gbl> > <#D************ *@TK2MSFTNGP11. phx.gbl> > <CR************ **@cpmsftngxa06 .phx.gbl> > >MIME-Version: 1.0 > >Content-Type: text/plain > >Content-Transfer-Encoding: 7bit > >From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) > >Organization : Microsoft > >Date: Tue, 24 Feb 2004 23:25:19 GMT > >Subject: Re: <browserCaps> and NULL UserAgent > >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet > >Message-ID: <l7************ **@cpmsftngxa10 .phx.gbl> > >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet > >Lines: 75 > >NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122 > >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG XA06.phx.gbl!cp msftngxa10.phx. gbl > >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2134 09 > > > >Hi Jason, > > > >I'm still researching this. It's going to be a bit longer before I'll > have > >something for you. > > > >Jim Cheshire, MCSE, MCSD [MSFT] > >ASP.NET > >Developer Support > >ja******@onlin e.microsoft.com > > > >This post is provided as-is with no warranties and confers no rights. > > > >-------------------- > >>X-Tomcat-ID: 749098030 > >>References: <u9************ **@TK2MSFTNGP11 .phx.gbl> > ><zz*********** ***@cpmsftngxa0 7.phx.gbl> > ><#D*********** **@TK2MSFTNGP11 .phx.gbl> > >>MIME-Version: 1.0 > >>Content-Type: text/plain > >>Content-Transfer-Encoding: 7bit > >>From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) > >>Organizatio n: Microsoft > >>Date: Mon, 23 Feb 2004 23:56:52 GMT > >>Subject: Re: <browserCaps> and NULL UserAgent > >>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet > >>Message-ID: <CR************ **@cpmsftngxa06 .phx.gbl> > >>Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet > >>Lines: 47 > >>Path: cpmsftngxa06.ph x.gbl > >>Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2131 35 > >>NNTP-Posting-Host: tomcatimport2.p hx.gbl 10.201.218.182 > >> > >>Hi Jason, > >> > >>I am currently researching your issue and attempting to repro. I
will > >post > >>back here ASAP. It will be sometime tomorrow. > >> > >>Jim Cheshire, MCSE, MCSD [MSFT] > >>ASP.NET > >>Developer Support > >>ja******@onli ne.microsoft.co m > >> > >>This post is provided as-is with no warranties and confers no rights. > >> > >> > >>-------------------- > >>>From: "Jason Collins" <jc************ *@point2.com> > >>>References : <u9************ **@TK2MSFTNGP11 .phx.gbl> > >><zz********** ****@cpmsftngxa 07.phx.gbl> > >>>Subject: Re: <browserCaps> and NULL UserAgent > >>>Date: Mon, 23 Feb 2004 08:54:02 -0600 > >>>Lines: 24 > >>>X-Priority: 3 > >>>X-MSMail-Priority: Normal > >>>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 > >>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 > >>>Message-ID: <#D************ *@TK2MSFTNGP11. phx.gbl> > >>>Newsgroups : microsoft.publi c.dotnet.framew ork.aspnet > >>>NNTP-Posting-Host: codemonkey.net 142.165.166.48 > >>>Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl > >>>Xref: cpmsftngxa06.ph x.gbl > microsoft.publi c.dotnet.framew ork.aspnet:2129 73 > >>>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet > >>> > >>>Yes, this is what I want to do (i.e., match clients with UserAgent==null ) > >>>j > >>> > >>>"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in
message > >>>news:zz***** *********@cpmsf tngxa07.phx.gbl ... > >>>> Hi Jason, > >>>> > >>>> Thank you for posting in community. > >>>> From your description, you're wondering how to set the browserCap' > >filter > >>>> so as to capture those clients whose useragent is null, yes? > >>>> Regarding on the issue, I am > >>>> finding proper resource to assist you and we will update as soon
as > >>>posible. > >>>> > >>>> Regards, > >>>> > >>>> Steven Cheng > >>>> Microsoft Online Support > >>>> > >>>> Get Secure! www.microsoft.com/security(This posting is provided
"AS > IS", > >>>> with no warranties, and confers no rights.) > >>>> > >>> > >>> > >>> > >> > >> > > > > >
Too bad.
Can you get this feedback to the Whidbey team, as there are a growing number
of popular crawlers that are simply using NULL as their UserAgent?
It would seem that some special attribute would have to be introduced to the
<case> tag to make this match.
Thanks,
j
"Jim Cheshire [MSFT]" <ja******@onlin e.microsoft.com > wrote in message
news:46******** ********@cpmsft ngxa06.phx.gbl. .. Jason,
That's just not going to be possible via the machine.config file. There
is no Regular Expression that will match a value that is not defined.
Jim Cheshire, MCSE, MCSD [MSFT] ASP.NET Developer Support ja******@online .microsoft.com
This post is provided as-is with no warranties and confers no rights.
--------------------From: "Jason Collins" <jc************ *@point2.com> References: <u9************ **@TK2MSFTNGP11 .phx.gbl> <zz************ **@cpmsftngxa07 .phx.gbl> <#D************ *@TK2MSFTNGP11. phx.gbl> <CR************ **@cpmsftngxa06 .phx.gbl> <l7************ **@cpmsftngxa10 .phx.gbl> <kz************ **@cpmsftngxa06 .phx.gbl> <#E************ **@TK2MSFTNGP11 .phx.gbl>Subject: Re: <browserCaps> and NULL UserAgent Date: Thu, 26 Feb 2004 16:23:54 -0600 Lines: 175 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <eg************ **@TK2MSFTNGP09 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet NNTP-Posting-Host: codemonkey.net 142.165.166.48 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl Xref: cpmsftngxa06.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:2140 88X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
Because I'm want to do this centrally in the machine.config' s
<browserCaps>so that it doesn't litter my code all over the place.
j
"Eric Lawrence [MSFT]" <e_********@hot mail.com> wrote in message news:%2******* *********@TK2MS FTNGP11.phx.gbl ... Perhaps I'm missing something. Why not just test the Request.Headers["User-Agent"] against null?
-- Thanks,
Eric Lawrence Program Manager Assistance and Worldwide Services
This posting is provided "AS IS" with no warranties, and confers no rights. "Jim Cheshire [MSFT]" <ja******@onlin e.microsoft.com > wrote in message news:kz******** ******@cpmsftng xa06.phx.gbl... > Hi Jason, > > I have conferred with all of the experts, and the bottom line is that
this > cannot be done. You can match an empty string, but you cannot match > something that is undefined. In order to match something with RegEx, you > must first define it. > > In the process of troubleshooting your issue, I was pointed at a
really > cool tool that I thought I'd share with you. Here it is: > >
http://www.gotdotnet.com/Community/U...ampleGuid=C712 F > 2DF-B026-4D58-8961-4EE2729D7322 > > Thanks. > > Jim Cheshire, MCSE, MCSD [MSFT] > ASP.NET > Developer Support > ja******@online .microsoft.com > > This post is provided as-is with no warranties and confers no rights. > > -------------------- > >X-Tomcat-ID: 713102383 > >References: <u9************ **@TK2MSFTNGP11 .phx.gbl> > <zz************ **@cpmsftngxa07 .phx.gbl> > <#D************ *@TK2MSFTNGP11. phx.gbl> > <CR************ **@cpmsftngxa06 .phx.gbl> > >MIME-Version: 1.0 > >Content-Type: text/plain > >Content-Transfer-Encoding: 7bit > >From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) > >Organization : Microsoft > >Date: Tue, 24 Feb 2004 23:25:19 GMT > >Subject: Re: <browserCaps> and NULL UserAgent > >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet > >Message-ID: <l7************ **@cpmsftngxa10 .phx.gbl> > >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet > >Lines: 75 > >NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122 > >Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG XA06.phx.gbl!cp msftngxa10.phx. gbl > >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2134 09 > > > >Hi Jason, > > > >I'm still researching this. It's going to be a bit longer before
I'll > have > >something for you. > > > >Jim Cheshire, MCSE, MCSD [MSFT] > >ASP.NET > >Developer Support > >ja******@onlin e.microsoft.com > > > >This post is provided as-is with no warranties and confers no
rights. > > > >-------------------- > >>X-Tomcat-ID: 749098030 > >>References: <u9************ **@TK2MSFTNGP11 .phx.gbl> > ><zz*********** ***@cpmsftngxa0 7.phx.gbl> > ><#D*********** **@TK2MSFTNGP11 .phx.gbl> > >>MIME-Version: 1.0 > >>Content-Type: text/plain > >>Content-Transfer-Encoding: 7bit > >>From: ja******@online .microsoft.com (Jim Cheshire [MSFT]) > >>Organizatio n: Microsoft > >>Date: Mon, 23 Feb 2004 23:56:52 GMT > >>Subject: Re: <browserCaps> and NULL UserAgent > >>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet > >>Message-ID: <CR************ **@cpmsftngxa06 .phx.gbl> > >>Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet > >>Lines: 47 > >>Path: cpmsftngxa06.ph x.gbl > >>Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2131 35 > >>NNTP-Posting-Host: tomcatimport2.p hx.gbl 10.201.218.182 > >> > >>Hi Jason, > >> > >>I am currently researching your issue and attempting to repro. I will > >post > >>back here ASAP. It will be sometime tomorrow. > >> > >>Jim Cheshire, MCSE, MCSD [MSFT] > >>ASP.NET > >>Developer Support > >>ja******@onli ne.microsoft.co m > >> > >>This post is provided as-is with no warranties and confers no
rights. > >> > >> > >>-------------------- > >>>From: "Jason Collins" <jc************ *@point2.com> > >>>References : <u9************ **@TK2MSFTNGP11 .phx.gbl> > >><zz********** ****@cpmsftngxa 07.phx.gbl> > >>>Subject: Re: <browserCaps> and NULL UserAgent > >>>Date: Mon, 23 Feb 2004 08:54:02 -0600 > >>>Lines: 24 > >>>X-Priority: 3 > >>>X-MSMail-Priority: Normal > >>>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 > >>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 > >>>Message-ID: <#D************ *@TK2MSFTNGP11. phx.gbl> > >>>Newsgroups : microsoft.publi c.dotnet.framew ork.aspnet > >>>NNTP-Posting-Host: codemonkey.net 142.165.166.48 > >>>Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl > >>>Xref: cpmsftngxa06.ph x.gbl > microsoft.publi c.dotnet.framew ork.aspnet:2129 73 > >>>X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet > >>> > >>>Yes, this is what I want to do (i.e., match clients with UserAgent==null ) > >>>j > >>> > >>>"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message > >>>news:zz***** *********@cpmsf tngxa07.phx.gbl ... > >>>> Hi Jason, > >>>> > >>>> Thank you for posting in community. > >>>> From your description, you're wondering how to set the
browserCap' > >filter > >>>> so as to capture those clients whose useragent is null, yes? > >>>> Regarding on the issue, I am > >>>> finding proper resource to assist you and we will update as soon as > >>>posible. > >>>> > >>>> Regards, > >>>> > >>>> Steven Cheng > >>>> Microsoft Online Support > >>>> > >>>> Get Secure! www.microsoft.com/security(This posting is provided "AS > IS", > >>>> with no warranties, and confers no rights.) > >>>> > >>> > >>> > >>> > >> > >> > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Eric |
last post by:
Hi,
Why there is no <browserCaps> section, which is correct?
I understand that Netscape and others are 'DownLevel' browser,
but in my case, also the PocketIE on my Ipaq and
Opera browser for SmartPhone are reconized wrong (IsMobileDevice = false).
From where or how I get the a configuration which works?
Thanks
|
by: Eric |
last post by:
Hi,
Why there is no <browserCaps> section, which is correct?
I understand that Netscape and others are 'DownLevel' browser,
but in my case, also the PocketIE on my Ipaq and
Opera browser for SmartPhone are reconized wrong (IsMobileDevice = false).
From where or how I get the a configuration which works?
|
by: Lui |
last post by:
I was wondering if anyone knew if Microsoft had released or are
planning
to update the <browserCapsfor .Net 1.1 to support other browsers
like IE 7 and Firefox 2 etc...
|
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...
|
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,...
| |
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |