Bug 395543

Summary: [Request] Provide referer for the External Downloader
Product: [Applications] Falkon Reporter: trmdi
Component: generalAssignee: David Rosca <nowrep>
Status: RESOLVED FIXED    
Severity: normal CC: private2.6.3
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description trmdi 2018-06-18 04:43:02 UTC
Some sites like: https://updato.com/firmware-archive-select-model?record=515ED299300B11E89F15FA163EE8F90B
(with the Download direct link in that page)

need the referer page to allow the user to be able to download the real file, otherwise they just send a html file to the user.

So, could you provide the **referer var** to the External downloader argument ?
Comment 1 The_assassin 2018-06-18 05:54:46 UTC
(In reply to idmresettrial from comment #0)

A sample example:

URL='https://fws03.updato.com/GALAXYJ7PRIME/SM-G610F/XME/SM-G610F_1_20180313092214_fzdm79ki3g_fac.zip'

REF="$(printf "${URL}" | cut -f1-3 -d'/')/"
Comment 2 trmdi 2018-06-18 10:12:51 UTC
(In reply to Moonchild from comment #1)
> (In reply to idmresettrial from comment #0)
> 
> A sample example:
> 
> URL='https://fws03.updato.com/GALAXYJ7PRIME/SM-G610F/XME/SM-
> G610F_1_20180313092214_fzdm79ki3g_fac.zip'
> 
> REF="$(printf "${URL}" | cut -f1-3 -d'/')/"

Nice.