473,395 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 4945
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Fuzzyman | last post by:
I'm writing a function that will query the comp.lang.python newsgroup via google groups....... (I haven't got nntp access from work..) I'm using urllib (for the first time)..... and google don't...
60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
1
by: Jon Spivey | last post by:
Hi, I'm using webrequest to scrape some urls, works fine, however one url seems to be throwing an error when it doesn't recognise the user agent. So I need to set the user agent to something...
3
by: Raventhorn | last post by:
I am having problems that I also saw people having in the ASP.NET forums with menus and people coming to a site with weird user agent values. Is there a way to access the user agent before the user...
8
by: Mats Lycken | last post by:
Hi, I'm working on a webproject where I have several different user controls loaded on a WebForm. A problem arises when I in one webcontrol makes a change that should be picked up by another user...
0
by: =?Utf-8?B?TWlrZTEz?= | last post by:
Sorry for the cross post from dontnet.framework but I'm hoping this may see more activity here. I have written an application to access a web service. The application runs at multiple sites and...
0
by: =?Utf-8?B?TWlrZTEz?= | last post by:
Sorry for the cross post; I'm hoping this will get a response here... I have written an application to access a web service. The application runs at multiple sites and must cross a proxy server....
35
by: RobG | last post by:
Seems developers of mobile applications are pretty much devoted to UA sniffing: <URL: http://wurfl.sourceforge.net/vodafonerant/index.htm > -- Rob
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
jinu1996
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...
0
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...
0
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...

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.