title: Grabbing HTML From a Page That Has Blocked CURL
body: <p>I have been asked to grab a certain line from a page but it appears that site has blocked CURL requests?</p>
  
  <p>The site in question is <a href="http://www.habbo.com/home/Intricat" rel="nofollow">http://www.habbo.com/home/Intricat</a></p>
  
  <p>I tried changing the UserAgent to see if they were blocking that but it didn't seem to do the trick.</p>
  
  <p>The code I am using is as follows:</p>
  
  <pre><code>&lt;?php
  
  $curl_handle=curl_init();
  //This is the URL you would like the content grabbed from
  curl_setopt($curl_handle, CURLOPT_USERAGENT, "Mozilla/5.0");
  curl_setopt($curl_handle,CURLOPT_URL,'http://www.habbo.com/home/Intricat');
  //This is the amount of time in seconds until it times out, this is useful if the server you are requesting data from is down. This way you can offer a "sorry page"
  curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
  
  curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
  $buffer = curl_exec($curl_handle);
  //This Keeps everything running smoothly
  curl_close($curl_handle);
  
  // Change the message bellow as you wish, please keep in mind you must have your message within the " " Quotes.
  if (empty($buffer))
  {
      print "Sorry, It seems our weather resources are currently unavailable, please check back later.";
  }
  else
  {
      print $buffer;
  }
  ?&gt;
  </code></pre>
  
  <p>Any ideas on another way I can grab a line of code from that page if they've blocked CURL requests?</p>
  
  <p>EDIT: On running curl -i through my server, it appears that the site is setting a cookie first?</p>