Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I use curl with mediafire?

772 views
Skip to first unread message

T

unread,
Jul 12, 2016, 4:56:03 PM7/12/16
to
Hi All,

How do I use curl to download classic shell from:
http://www.classicshell.net/
http://www.fosshub.com/Classic-Shell.html/ClassicShellSetup_4_2_5c.exe


Firefox (cliget) tells me to do

curl --header 'Host: download.fosshub.com' --header 'User-Agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.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/Classic-Shell.html/ClassicShellSetup_4_2_5c.exe'
--header 'Cookie: __cfduid=d1537a7cd309bef9d0287bfc47857e4721468356779'
--header 'Connection: keep-alive'
'https://download.fosshub.com/Protected/expiretime=1468358580;badurl=aHR0cDovL3d3dy5mb3NzaHViLmNvbS9DbGFzc2ljLVNoZWxsLmh0bWw=/d567f4426d33e30b8e07cbeecb5dfa1da78dc9e1f0407b2fde6b70a9e314478e/Classic-Shell/ClassicShellSetup_4_2_5c.exe'
-o 'ClassicShellSetup_4_2_5c.exe' -L


But how do I get there if I am using a script?


Many thanks,
-T


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

dlbendigo

unread,
Jul 14, 2016, 7:24:58 AM7/14/16
to
T <T...@invalid.invalid> Wrote in message:
> Hi All,
>
> How do I use curl to download classic shell from:
> http://www.classicshell.net/
> http://www.fosshub.com/Classic-Shell.html/ClassicShellSetup_4_2_5c.exe
>
>
> Firefox (cliget) tells me to do
>
> curl --header 'Host: download.fosshub.com' --header 'User-Agent:
> Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.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/Classic-Shell.html/ClassicShellSetup_4_2_5c.exe'
> --header 'Cookie: __cfduid=d1537a7cd309bef9d0287bfc47857e4721468356779'
> --header 'Connection: keep-alive'
> 'https://download.fosshub.com/Protected/expiretime=1468358580;badurl=aHR0cDovL3d3dy5mb3NzaHViLmNvbS9DbGFzc2ljLVNoZWxsLmh0bWw=/d567f4426d33e30b8e07cbeecb5dfa1da78dc9e1f0407b2fde6b70a9e314478e/Classic-Shell/ClassicShellSetup_4_2_5c.exe'
> -o 'ClassicShellSetup_4_2_5c.exe' -L
>
>
> But how do I get there if I am using a script?
>
>
> Many thanks,

> -T
>
How do we know? You haven't told us what is in your script.
My answer would be: bypass your script and download
the file normally.

Does the script just append the link to curl? I would use wget
instead of curl. Note as well, that the link says it is
time-limited.
It won't work after it has timed out.
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Computers are like air conditioners.
> They malfunction when you open windows
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>


--

T

unread,
Jul 14, 2016, 4:16:34 PM7/14/16
to
The script appends

http://www.fosshub.com/Classic-Shell.html/ClassicShellSetup_4_2_5c.exe

to curl. Curl then proceeds to downloads some baloney.
0 new messages