• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Global User Agent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Global User Agent? (From: August Trometer <email@hidden>)

  • Prev by Date: NSMovieView blocks Energy Saver
  • Next by Date: Re: NSMovieView blocks Energy Saver
  • Previous by thread: Global User Agent?
  • Next by thread: [REQUEST] Calling all Interface Builder Palettes
  • Index(es):
    • Date
    • Thread