<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: verdana, sans-serif; line-height: 16px; ">Hi,<br><br>I need friendly name of OS and processor type at runtime. I need this for "user-agent" header in http client. Some kind of "Linux x86_64 Ubuntu/11.04" ("<meta http-equiv="content-type" content="text/html; charset=utf-8">Linux x86_64" should be enough). "GetEnvironmentVariable" function does not return anything interesting. I can build this string using compiler defines but there is a lot of targets CPU and OS and maybe free pascal have some functions? How free pascal build string name of output executable when I set $(TargetCPU) in lazarus project options?<br>
<br>Regards.</span>