build_user_agent
Description:
[ Version ( since = "1.0.3" ) ]
public string build_user_agent (string package_name, string package_version)
Builds a user-agent to use for the download.
Supplying harmless details to the server means it knows more about each client. This allows the web service to respond in a different way, for instance sending a different metadata file for old versions of fwupd, or returning an error for Solaris machines.
Before freaking out about theoretical privacy implications, much more data than this is sent to each and every website you visit.
Rather that using this function you should use set_user_agent_for_package which uses the *runtime* version of the daemon rather than the *build-time* version.
Parameters:
package_name |
client program name, e.g. "gnome-software" |
package_version |
client program version, e.g. "3.28.1" |
Returns:
a string, e.g. `foo/0.1 (Linux i386 4.14.5; en; Fedora 27) fwupd/1.0.3` |