title: grabbing youtube video URL from curl or get_video_info
body: <p>So, I am working on a php project and one part of it is grabbing a youtube video url and inserting it into an html5 video tag.  I was using a curl call to <a href="http://youtube.com/get_video_info?video_id=XXX">http://youtube.com/get_video_info?video_id=XXX</a> and getting the right video file urls on my local machine.  </p>
  
  <p>But, when I uploaded my code to my web server and tried to run it, none of the video URLs have worked.  The urls seemed fine but some parameters, like IP, where different.  I can't understand why it works from my local machine running xampp or mamp but not on my web server. I even tried just doing a curl on the youtube video page and noticed that locally, it would output the page and play the video but on my webserver, all the video calls got 404s.</p>
  
  <p>Any info about this?  Anyway I can grab a youtube video url so that I can play youtube videos in a html5 video tag? Is this why keepvid and sites like that use the damn java applet?  </p>