set curl user agent and referrer

git-svn-id: file:///home/shish/svn/shimmie2/trunk@502 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-09-29 22:48:33 +00:00
parent ef1a82043d
commit 7a936d41cf
2 changed files with 18 additions and 0 deletions

View File

@@ -150,6 +150,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);