469,319 Members | 2,407 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,319 developers. It's quick & easy.

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
Aug 6 '08 #1
3 4737
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)
Aug 6 '08 #2
Gazing into my crystal ball I observed "Toni" <To****@yahoo.comwriting
in news:OL**************@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

Aug 6 '08 #3
"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


Aug 9 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Fuzzyman | last post: by
60 posts views Thread by Fotios | last post: by
88 posts views Thread by Mike | last post: by
1 post views Thread by Jon Spivey | last post: by
3 posts views Thread by Raventhorn | last post: by
8 posts views Thread by Mats Lycken | last post: by
reply views Thread by =?Utf-8?B?TWlrZTEz?= | last post: by
reply views Thread by =?Utf-8?B?TWlrZTEz?= | last post: by
35 posts views Thread by RobG | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.