Changeset - c9c12e4e603a
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 14 years ago 2012-02-16 10:08:56
ohnobinki@ohnopublishing.net
Set the User-Agent header in our crawler.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
inc/school.crawl.inc
Show inline comments
 
@@ -303,6 +303,7 @@ function school_crawl_geturi(&$uri, &$co
 
  school_crawl_logf($school_crawl_log, 7, "school_crawl_geturi('%s').", $uri);
 

	
 
  $curl = curl_init();
 
  curl_setopt($curl, CURLOPT_USERAGENT, SP_PACKAGE_NAME . '/' . SP_PACKAGE_VERSION);
 

	
 
  if ($curlsetup_hook !== NULL)
 
    $curlsetup_hook($curl);
0 comments (0 inline, 0 general)