curl 和 file_get_content 模拟登陆页面的问题

想请教一下各种大神们,我用file_get_content设置了UA就可以输出页面,可是用curl的话反而会报出所请求的资源被分配一个新的永久性的URI,百思不得其解,希望有人能帮下我..
PS:该页面是1688的登陆页面

$url="http://login.1688.com/member/signin.htm";

//可以输出

/* ini_set('user_agent','Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322)');

echo file_get_contents($url) */;

//exit;

//输出为302 Found
//所请求的资源被分配一个新的永久性的URI
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
//curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)');
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$content = curl_exec($ch);
curl_close($ch);
echo $content;