set curl user-agent and referrer

git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@503 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-09-29 22:49:56 +00:00
parent 460ac0d5b6
commit 839b585aee

View File

@ -147,6 +147,8 @@ class Upload extends Extension {
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_USERAGENT, "Shimmie-".VERSION);
curl_exec($ch);
curl_close($ch);