mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 01:35:56 +03:00
[GH-ISSUE #200] Missing User-Agent header to get images #89
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sadok-f on GitHub (Dec 6, 2018).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/200
Originally assigned to: @sadok-f on GitHub.
Some servers denied flyimg app to download the image because of missing User-Agent header.
A solution is to add this header to the InputImage::saveToTemporaryFile() function.
@baamenabar commented on GitHub (Dec 6, 2018):
What UA should we choose?
maybe some servers will give out different image format based on the UA sent
@sadok-f commented on GitHub (Dec 6, 2018):
the one worked is this option:
'header' => 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201',
but I'd like to make it optional and configurable via the parameters.yml file