title: Downloading a video from a php page
body: <p>I want to download a video on <code>example.com</code>, but it's "protected" by a flash player.  </p>
  
  <ul>
  <li>By inspecting the HTML code of the page, I've been able to get the direct URL to the mp4 video from the player's parameters, something like <code>example.com/video.mp4</code>.</li>
  <li>When I try to go to <code>example.com/video.mp4</code>, I just get a blank page mentioning <code>access denied</code>. I figured that you need to do a specific request in order to get the video.</li>
  <li>I analyzed traffic while reloading the page and playing the video through the player, and I've been able to get the right URL, which is along the lines of <code>example.com/get_video.php?param1=some_hash&amp;param2=some_hash&amp;filename=video.mp4</code>  </li>
  <li>When I visit <code>example.com/get_video.php?param1=some_hash&amp;param2=some_hash&amp;filename=video.mp4</code>, I <strong>do</strong> have the video playing alone, with no other content, in my browser's default player. But when I try to save it, the dialog box wants to save the PHP page...</li>
  </ul>
  
  <p>How do I save the video now that I have it ?<br>
  Thanks.</p>