title: Scrape website with javascript using cURL
body: <p>I try to scrape data of this website:
  <a href="http://ntthnue.edu.vn/tracuudiem" rel="nofollow">http://ntthnue.edu.vn/tracuudiem</a></p>
  
  <p>First, when I insert the SBD field with data 'TS4740', I can successfully get the result. However, when I try to run this code:</p>
  
  <p>Here is my PHP cURL code:</p>
  
  <pre><code>&lt;?php
  
  function getData($id) {
      $url = 'http://ntthnue.edu.vn/tracuudiem';
      $ch = curl_init($url);
  
      curl_setopt($ch, CURLOPT_POST, true);
      curl_setopt($ch, CURLOPT_POSTFIELDS, ['sbd' =&gt; $id]);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
      $result = curl_exec($ch);
  
      curl_close($ch);
  
      return $result;
  }
  
  echo getData('TS4740');
  </code></pre>
  
  <p>I just got the old page. Can anybody explain why? Thank you!</p>