question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow specifying per-item request headers (for playback and downloads)

See original GitHub issue

I have different cookies for each video. so each time new video is loaded, I set DownloadManager with new cookie. defaultHttpDataSourceFactory.getDefaultRequestProperties().set("Cookie", cookieValue); however, I can only download video for the first time. I think DownloadService seems to call DownloadManager only when DownloadService is started for the first time. How do I download video with each different cookie?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

8reactions
BarryFruitmancommented, Jul 21, 2020

+1 for specifying headers in a DownloadRequest or MediaItem. Headers are used pretty commonly in authentication schemas and it would be useful to be able to specify them on a per-request basis.

4reactions
RemiHincommented, Jul 23, 2021

Is there any update on this? I’m running into the problem that I can’t download files that require an authentication header.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access-Control-Allow-Headers - HTTP - MDN Web Docs
This example shows Access-Control-Allow-Headers when it specifies support for multiple headers. Access-Control-Allow-Headers: X-Custom-Header, ...
Read more >
Request Headers | Amazon Music Device API
This header allows a different maximum size to be specified for each image role. The valid image roles are: navigation-node; item; track-container; track;...
Read more >
php proxy url
When I open the Nextcloud URL nginx proxies the request to apache and ... Most browsers allow you to specify a list of...
Read more >
HTTP security headers: An easy way to harden your web ...
First up are the three best-known and probably most important HTTP response headers that any modern web application should be setting to ...
Read more >
HTTP Headers for File Downloads - Stack Overflow
As explained by Alex's link you're probably missing the header ... Download Script</title><body>ERROR: download file NOT SPECIFIED.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found