Skip to content

Instantly share code, notes, and snippets.

@aligo
Created September 26, 2012 06:07
Show Gist options
  • Save aligo/3786364 to your computer and use it in GitHub Desktop.
Save aligo/3786364 to your computer and use it in GitHub Desktop.
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://s.weibo.com/weibo/test');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
$html = curl_exec($ch);
echo $html;
@samqiu
Copy link

samqiu commented Sep 26, 2012

为啥不用Ruby写

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment