Home Forum NetTalk Wiki Download/Upload Links Search Fat Chat
Links

Clarion

Clarion Desktop
Capesoft

Java Script

Java Calendar

NetTalk WebServers

POSitive Connect

Clarion Sites

Pimp my Clarion

RSS Feeds

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati
Add to BlinkBits

Site Stats

Visits today: 63
Visits yesterday: 178
Visits month: 1060
Visits total: 122286
Max.monthly visits: 6414
  occurred: 2010-8
Pages this month: 4961
Pages total: 683797
Data since: 2007-06-23
NetTalk Central
September 07, 2010, 05:51:50 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Get the User-Agent info  (Read 163 times)
IRobert
Jr. Member
**
Posts: 67



View Profile Email
« on: July 29, 2010, 10:31:29 pm »

Hallo,


How can I get the User-Agent info ? like bellow

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8


Thank you,
Robert
Logged
Larry Sand
Newbie
*
Posts: 23


View Profile
« Reply #1 on: July 30, 2010, 06:32:20 am »

Robert,

The web handler's "_useragent" property contains that information.

Larry Sand
Logged
IRobert
Jr. Member
**
Posts: 67



View Profile Email
« Reply #2 on: August 02, 2010, 10:34:31 am »

Hallo Larry,


I found that property too, but don't know how to use it... and where to put the code...

Thank you,
Robert
Logged
Bruce
Hero Member
*****
Posts: 1814



View Profile
« Reply #3 on: August 03, 2010, 07:25:41 am »

use it wherever you need to. I guess where depends on what you're doing with it.
as to "how"...

str = p_web._UserAgent

Cheers
Bruce
Logged
IRobert
Jr. Member
**
Posts: 67



View Profile Email
« Reply #4 on: August 03, 2010, 10:07:12 pm »

Hallo Bruce,

I always got compile error: Syntax error: Field not found: _USERAGENT

Robert
Logged
Bruce
Hero Member
*****
Posts: 1814



View Profile
« Reply #5 on: August 04, 2010, 05:40:38 am »

what build are you using?
Logged
IRobert
Jr. Member
**
Posts: 67



View Profile Email
« Reply #6 on: August 04, 2010, 06:23:58 am »

Version 4.49
Logged
IRobert
Jr. Member
**
Posts: 67



View Profile Email
« Reply #7 on: August 10, 2010, 07:51:31 am »

Hallo Bruce,

Any news ?

Thank you,
Robert
Logged
Bruce
Hero Member
*****
Posts: 1814



View Profile
« Reply #8 on: August 10, 2010, 08:09:21 pm »

ah - you may want to mention the version you have with your posts. The _UserAgent property is in version 5.

you'll need to do this;

xxx = p_web.GetHeaderField('User-Agent:')

cheers
Bruce
Logged
IRobert
Jr. Member
**
Posts: 67



View Profile Email
« Reply #9 on: August 15, 2010, 04:11:26 am »

Hallo Bruce,

Works perfect!
Thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register

ClarionMag News

mod_dbrss2 AJAX RSS Reader poweredbysimplepie
home contact search contact search