I'm looking to download videos from YouTube. My code works with most video. I can save the videos no problem but for some videos an HTTP response code of 403 is returned. For example all Vevo videos return 403 errors.
I'm pretty sure it is to do with the headers. I've added headers to the request as per Chromes Live HTTP Headers.
This is my code. Can somebody please suggest something I'm missing.
Hi, thank you for your response. The video is Coldplay's Viva La Vida which I can access through my browser. As I said in my post I can download most other videos besides ones such as Vevo videos. Are there any other HTTP fields such as Cookies I should be using to get it to work?