BASS_CONFIG_NET_AGENT config option

The "User-Agent" request header sent to servers.

BASS_SetConfigPtr(
    BASS_CONFIG_NET_AGENT,
    char *agent
);

Parameters

agentThe "User-Agent" header.

Remarks

BASS_SetConfigPtr makes a copy of the provided string, so it does not need to persist beyond the call. Changes take effect from the next internet stream creation call.

This setting can be overridden in BASS_StreamCreateURL calls by including a "User-Agent" header in custom request headers.

Platform-specific

On Windows, the BASS_UNICODE flag can be used with a UTF-16 string ("wchar_t" rather than "char").

See also

BASS_GetConfigPtr, BASS_SetConfigPtr, BASS_StreamCreateURL