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:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Tue, 17 Feb 2015 14:05:33 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
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




-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ATOM RSS1 RSS2