SCIENTIFIC-LINUX-USERS Archives

July 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:
Nico Kadel-Garcia <[log in to unmask]>
Reply To:
Nico Kadel-Garcia <[log in to unmask]>
Date:
Sat, 4 Jul 2015 11:17:30 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (56 lines)
Why are you trying to use "curl" for some site that is "re-inventing
software downloads" and is entirely dependent on clickthroughs to
actually find the content? Part of the whole point of such a site is
to prevent direct, URL accessible downloads? They don't publish direct
download URL's. I'd discard the site immediately as someone who's
revisiting the DotCom business model and doomed to failure.

If you need a "content change monitor" like the "FreeFileSync" tool,
why not just put the relevant content in git source control?

On Sat, Jul 4, 2015 at 3:23 AM, ToddAndMargo <[log in to unmask]> wrote:
> Hi All,
>
> In Firefox, when I click on
>
>    http://www.fosshub.com/FreeFileSync.html#clickToStartDownload
>
> Cliget tells me:
>
> curl --header 'Host: files.fosshub.com' --header 'User-Agent: Mozilla/5.0
> (X11; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.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=d6f1281949af85b5b300ff7184c0d87881435987093' --header 'Connection:
> keep-alive'
> 'http://files.fosshub.com/Protected/expiretime=1435994622;badurl=aHR0cDovL3d3dy5mb3NzaHViLmNvbS9GcmVlRmlsZVN5bmMuaHRtbA==/6bf907c940a74164cc927ddf3fd0719bee03c53d5c0916955c287ba0d40d1676/FreeFileSync/FreeFileSync_7.2_Win_Setup.exe'
> -o 'FreeFileSync_7.2_Win_Setup.exe' -L
>
>
> How do I figure out the above from the command line?
>
> Many thanks,
> -T
>
> The closest I have come is:
>
> curl --header 'Host: files.fosshub.com' --header 'User-Agent: Mozilla/5.0
> (X11; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.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 'Connection: keep-alive'
> --header 'Host: files.fosshub.com'  --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 'Connection: keep-alive'
> --header 'Cookie: $(curl --silent -I
> http://www.fosshub.com/FreeFileSync.html#clickToStartDownload | grep
> Set-Cookie | awk -F ": " '{print $2}' | awk -F ";" '{print $1}')' $(wget
> ${ConnectTimeout} --quiet --header="Referer:
> http://www.fosshub.com/FreeFileSync.html"
> "http://www.fosshub.com/genLink/FreeFileSync/FreeFileSync_${LatestRev}_Windows_Setup.exe"
> -O /dev/stdout) --output "${NewFileName}" -L
>
> Which tells me "The page is temporarily unavailable"

ATOM RSS1 RSS2