Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Official User Agent Format?

Question posted by: Toni (Guest) on August 6th, 2008 05:55 PM
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


Evertjan.'s Avatar
Evertjan.
Guest
n/a Posts
August 6th, 2008
06:25 PM
#2

Re: Official User Agent Format?
Toni wrote on 06 aug 2008 in microsoft.public.inetserver.asp.general:
Quote:
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)

Adrienne Boswell's Avatar
Adrienne Boswell
Guest
n/a Posts
August 6th, 2008
08:05 PM
#3

Re: Official User Agent Format?
Gazing into my crystal ball I observed "Toni" <Toni24@yahoo.comwriting
in news:OL2esx#9IHA.6052@TK2MSFTNGP04.phx.gbl:
Quote:
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


Toni's Avatar
Toni
Guest
n/a Posts
August 9th, 2008
07:35 PM
#4

Re: Official User Agent Format?
"Adrienne Boswell" wrote...
Quote:
Gazing into my crystal ball I observed "Toni" writing...
>
Quote:
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







 
Not the answer you were looking for? Post your question . . .
189,072 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors