Use more specific user agents.

This commit is contained in:
Ricky Zhou (周家杰) 2009-08-14 21:52:55 -04:00
parent c42a697d01
commit abae1901c0
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ if (!function_exists('wp_authenticate')) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $config['fas_json_url']);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Auth_FAS 0.9");
curl_setopt($ch, CURLOPT_USERAGENT, "Wordpress MU FAS Auth 0.1");
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=".urlencode($username)."&user_name=".urlencode($username)."&password=".urlencode($password)."&login=Login");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);