Official User Agent Format?

This is a discussion on Official User Agent Format? within the Inetserver forums in Microsoft Tools category; I've got a simple ASP script that logs access to a particular file. The access log is just a simple comma-delimited text file. I've been looking, but I can't find this info: what are the specifications for what a User Agent string can or cannot contain? I am PARTICULARLY interested in if a UA string is allowed to contain a comma ",". (I'm hoping that they cannot). Can anyone point me to a resource that will tell if a User Agent string can - or CANNOT - contain a comma? Thanks so much! Toni...

Go Back   Application Development Forum > Microsoft Tools > Inetserver

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-06-2008, 01:45 PM
Toni
Guest
 
Default Official User Agent Format?

I've got a simple ASP script that logs access to a particular file. The access log is
just a simple comma-delimited text file.

I've been looking, but I can't find this info: what are the specifications for what a
User Agent string can or cannot contain?

I am PARTICULARLY interested in if a UA string is allowed to contain a comma ",". (I'm
hoping that they cannot).

Can anyone point me to a resource that will tell if a User Agent string can - or
CANNOT - contain a comma?

Thanks so much!

Toni


Reply With Quote
  #2  
Old 08-06-2008, 02:15 PM
Evertjan.
Guest
 
Default Re: Official User Agent Format?

Toni wrote on 06 aug 2008 in microsoft.public.inetserver.asp.general:

> I've got a simple ASP script that logs access to a particular file.
> The access log is just a simple comma-delimited text file.
>
> I've been looking, but I can't find this info: what are the
> specifications for what a User Agent string can or cannot contain?
>
> I am PARTICULARLY interested in if a UA string is allowed to contain a
> comma ",". (I'm hoping that they cannot).
>
> Can anyone point me to a resource that will tell if a User Agent
> string can - or CANNOT - contain a comma?
>


Just replace() the comma with something else,
if there never is a comma, it won't hurt.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Reply With Quote
  #3  
Old 08-06-2008, 03:55 PM
Adrienne Boswell
Guest
 
Default Re: Official User Agent Format?

Gazing into my crystal ball I observed "Toni" <Toni24@yahoo.com> writing
in news:OL2esx#9IHA.6052@TK2MSFTNGP04.phx.gbl:

> I've got a simple ASP script that logs access to a particular file.
> The access log is just a simple comma-delimited text file.
>
> I've been looking, but I can't find this info: what are the
> specifications for what a User Agent string can or cannot contain?
>
> I am PARTICULARLY interested in if a UA string is allowed to contain a
> comma ",". (I'm hoping that they cannot).
>
> Can anyone point me to a resource that will tell if a User Agent
> string can - or CANNOT - contain a comma?
>
> Thanks so much!
>
> Toni
>
>


Here's a UA string from one of my logs, and yes, it contains a comma:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_4; en-us)
AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Reply With Quote
  #4  
Old 08-09-2008, 03:23 PM
Toni
Guest
 
Default Re: Official User Agent Format?

"Adrienne Boswell" wrote...
> Gazing into my crystal ball I observed "Toni" writing...
>
> > I've got a simple ASP script that logs access to a particular file.
> > The access log is just a simple comma-delimited text file.
> >
> > I've been looking, but I can't find this info: what are the
> > specifications for what a User Agent string can or cannot contain?
> >
> > I am PARTICULARLY interested in if a UA string is allowed to contain a
> > comma ",". (I'm hoping that they cannot).
> >
> > Can anyone point me to a resource that will tell if a User Agent
> > string can - or CANNOT - contain a comma?
> >
> > Thanks so much!
> >
> > Toni
> >
> >

>
> Here's a UA string from one of my logs, and yes, it contains a comma:
> Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_4; en-us)
> AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1


Very useful - thanks, Adrienne!!!

Toni






Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:15 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.