SCIENTIFIC-LINUX-USERS Archives

February 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Brad Cable <[log in to unmask]>
Reply To:
Brad Cable <[log in to unmask]>
Date:
Tue, 17 Feb 2015 16:10:49 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (57 lines)
With that URL, you could also change expiretime to be well past the age 
of human existence by changing the first number to 9.

wget 
"http://files.fosshub.com/Protected/expiretime=9424210916;badurl=aHR0cDovL3d3dy5mb3NzaHViLmNvbS9GcmVlRmlsZVN5bmMuaHRtbA==/41affbb904a577f14aeace96bc39786f8840601489dcb8f9e12de18037e1c481/FreeFileSync/FreeFileSync_6.14_Windows_Setup.exe"

Also seems to work.

-Brad


On 02/17/2015 04:08 PM, Brad Cable wrote:
> Looks like the path alone is fine to pass to wget, the server doesn't 
> seem to check all the cookies.
>
> wget 
> "http://files.fosshub.com/Protected/expiretime=1424210916;badurl=aHR0cDovL3d3dy5mb3NzaHViLmNvbS9GcmVlRmlsZVN5bmMuaHRtbA==/41affbb904a577f14aeace96bc39786f8840601489dcb8f9e12de18037e1c481/FreeFileSync/FreeFileSync_6.14_Windows_Setup.exe"
>
> -Brad
>
>
> On 02/17/2015 04:05 PM, ToddAndMargo wrote:
>> Hi All,
>>
>> I am trying to write a script to download the latest
>> version of Free File Sync.
>>
>> http://www.fosshub.com/FreeFileSync.html
>>
>> Problem, it redirects and downloads from FossHub.
>> Firefox's CliGet plugin tells me this is the wget
>> command to download:
>>
>> wget --header='Host: files.fosshub.com' --header='User-Agent: 
>> Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0' 
>> --header='Accept: 
>> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' 
>> --header='Accept-Language: en-US,en;q=0.5' --header='Referer: 
>> http://www.fosshub.com/FreeFileSync.html' --header='Cookie: 
>> __cfduid=df5c4cffdb92958c5fec1d6820562977a1420013499; 
>> __utma=109354002.1937444008.1422666016.1422666016.1423372212.2; 
>> __utmz=109354002.1423372212.2.2.utmcsr=thisisudax.org|utmccn=(referral)|utmcmd=referral|utmcct=/' 
>> --header='Connection: keep-alive' 
>> 'http://files.fosshub.com/Protected/expiretime=1424210916;badurl=aHR0cDovL3d3dy5mb3NzaHViLmNvbS9GcmVlRmlsZVN5bmMuaHRtbA==/41affbb904a577f14aeace96bc39786f8840601489dcb8f9e12de18037e1c481/FreeFileSync/FreeFileSync_6.14_Windows_Setup.exe' 
>> -O 'FreeFileSync_6.14_Windows_Setup.exe' -c
>>
>> How in the dickens do I duplicate that from a script?  Cookies and
>> bad url and all!
>>
>> Many thanks,
>> -T
>>
>>
>>
>>
>

ATOM RSS1 RSS2