//."User-Agent: Vanilla/2.0\r\n"modify the user-agent to be the user-agent of the request:
$Header = "GET $Path?$Query HTTP/1.1\r\n"now everything that is proxied by vanilla will contain the request's user agent.
."Host: {$HostHeader}\r\n"
// If you've got basic authentication enabled for the app, you're going to need to explicitly define the user/pass for this fsock call
// "Authorization: Basic ". base64_encode ("username:password")."\r\n" .
."User-Agent: " . $_SERVER['HTTP_USER_AGENT']."\r\n"
//."User-Agent: Vanilla/2.0\r\n"
."Accept: */*\r\n"
."Accept-Charset: utf-8;\r\n"
."Referer: {$Referer}\r\n"
."Connection: close\r\n";
'User-Agent' => ArrayValue('HTTP_USER_AGENT', $_SERVER, 'Vanilla/2.0'),due to how fickle the $_SERVER array is, and that in the future it will be possible to call Vanilla from the command line. Anyways, 2.0.1 ;) It looks like you're new here. If you want to get involved, click one of these buttons!