Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
akamaized.net URLs result in 403, but they work in Postman #22017
Comments
|
You must provide exactly the same environment as browser does including headers, cookies and so on and mimic all other related behavior. |
|
I don't see how this is user error, since I can get this to work fine in Postman. It appears to me that youtube-dl is mangling the url I pass it from this log entry and not sending to the webserver what I've specified.
|
|
Here is the command that finally ended up working for me
|
Checklist
Verbose log
Description
My Command:
youtube-dl -v --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36" "https://video-rightnow.akamaized.net/33/351333/prod-09/hls/351333.m3u8?hdnts=st=1565029438~exp=1565029798~acl=/*~id=2baf06bd-599b-4b06-9dda-f1bd69decbf6~hmac=81482c114aa1968a6b401cae502083a0585ba98bee4bdc6fc5a08e94d470a365"I'm having a 403 issue downloading from akamaized.net. I pulled this request into postman and determined that the User-Agent header is required, and have provided a chrome user agent. I receive 200 responses in Postman, however receive 403 responses from youtube-dl.
Here is the code snippet from Postman showing the working HTTP request. This is the complete command I'm using:
I've tried adding these other headers Postman automatically addes to the request in youtube-dl, but these don't work either:
Any help troubleshooting this issue would be most appreciated. I also tried to download using FFMPEG, and received the same 403 errors despite adding the User-Agent header.
Thanks!