[GH-ISSUE #200] Missing User-Agent header to get images #696

Closed
opened 2026-03-15 15:05:46 +03:00 by kerem · 2 comments
Owner

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.

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.
kerem 2026-03-15 15:05:46 +03:00
Author
Owner

@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

<!-- gh-comment-id:444820552 --> @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
Author
Owner

@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

<!-- gh-comment-id:444823214 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flyimg#696
No description provided.