# Function Reference

# HttpSetUserAgent

Sets the HTTP user-agent string which is sent with all Inet requests.

HttpSetUserAgent ( "user agent" )

## Parameters

user agent | The string to set as the user-agent. The default user-agent is "AutoIt". Passing an empty string will reset the user-agent back to the default.

## Return Value

The previous user agent.

## Related

InetGet, InetGetSize, InetRead

## Example

    HttpSetUserAgent("MyUserAgent")