Instance Method

userAgentForURL:

Returns the appropriate user-agent string for a given URL.

Declaration

- (NSString *)userAgentForURL:(NSURL *)URL;

Parameters

URL

The URL that you need the user-agent string for.

Return Value

The user-agent string for a given URL. The user-agent string is used by websites to identify the client browser.

See Also

Getting and Setting User-agent Strings

applicationNameForUserAgent

The receiver’s application name that is used in the user-agent string.

Deprecated
customUserAgent

The receiver’s custom user-agent string.

Deprecated