title: cURL returning "Object not found!"
body: <p>I'm having problem with cURL, it's returning no result or "Object not found!"</p>
  
  <p>I know the site actually provide their own API, but i need more information to be grabbed.
  How to solve this problem ?</p>
  
  <p>here's the code</p>
  
  <pre><code>&lt;?php
          $URL = "http://myanimelist.net/manga.php?q=nisekoi";
          //Initl curl
          function get_web_page( $url )
          {
              $options = array(
                  CURLOPT_RETURNTRANSFER =&gt; true,     // return web page
                  CURLOPT_HEADER         =&gt; false,    // don't return headers
                  CURLOPT_FOLLOWLOCATION =&gt; true,     // follow redirects
                  CURLOPT_ENCODING       =&gt; "",       // handle all encodings
                  CURLOPT_USERAGENT      =&gt; "spider", // who am i
                  CURLOPT_AUTOREFERER    =&gt; true,     // set referer on redirect
                  CURLOPT_CONNECTTIMEOUT =&gt; 120,      // timeout on connect
                  CURLOPT_TIMEOUT        =&gt; 120,      // timeout on response
                  CURLOPT_MAXREDIRS      =&gt; 10,       // stop after 10 redirects
              );
  
              $ch      = curl_init( $url );
              curl_setopt_array( $ch, $options );
              $content = curl_exec( $ch );
              $err     = curl_errno( $ch );
              $errmsg  = curl_error( $ch );
              $header  = curl_getinfo( $ch );
              curl_close( $ch );
  
              $header['errno']   = $err;
              $header['errmsg']  = $errmsg;
              $header['content'] = $content;
              return $header;
          }
              echo get_web_page($URL)['content'];
  ?&gt;
  </code></pre>