Re: Global User Agent?
Re: Global User Agent?
- Subject: Re: Global User Agent?
- From: John Pannell <email@hidden>
- Date: Sat, 23 Oct 2004 14:11:57 -0600
Hi August-
I have also looked into this issue. All I have found from the
documentation and searching the archives is that a user-agent string
can only be set for a WebView object via its
setCustomUserAgent: method. All other methods of fetching a URL
provided by Cocoa lack this ability (as far as I could find... I'm no
expert :-)
Some people have used Dan Wood's CURLHandle to get around this.
Hope this helps!
John
On Oct 22, 2004, at 11:07 PM, August Trometer wrote:
I'm looking for a way to set the User Agent for my application. In
most cases, I use
NSDictionary *tempDict = [NSDictionary
dictionaryWithContentsOfURL:[NSURL
URLWithString:@"http://theURL.com"]];
This sends a null User Agent to the server, and I'd like to
differentiate my fetches from those of other apps. However, unless I'm
missing something, there doesn't seem to be a way to set the User
Agent for a call at this level.
Is there any way to set some sort of global User Agent that _would_
apply to calls such as this?
Thanks!
August
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden