magpie77
12-13-2004, 06:43 PM
Hi,
Need a help. I need to fetch the file directly to my server but the link I can give is php. How do I order the server to download it via SSH if its PHP?
URL to file is:
http://www.gamespot.com/cgi/chkpt.php?s=2877010&c=demo_ftp_561237&site=1&u=http%3A%2F%2Fdownload2.gamespot.com%2Fd3%2Fgsc%2Fstrategy%2Fstrongholdcrusader%2Fstrongholdcrusaderdemo.exe
Any way?
Would appreciate help. It would help me more then you can think of!
Thanks,
I think you can use the -O command. So:
wget -O http://www.gamespot.com/cgi/chkpt.p...rusaderdemo.exe
choon
12-13-2004, 09:06 PM
Originally posted by VeusHosting
I think you can use the -O command. So:
wget -O http://www.gamespot.com/cgi/chkpt.p...rusaderdemo.exe
:eek: You sure that is the option/command?
man wget
-O file
--output-document=file
The documents will not be written to the appropriate files, but all
will be concatenated together and written to file. If file already
exists, it will be overwritten. If the file is -, the documents
will be written to standard output. Including this option automat-
ically sets the number of tries to 1.
So to me this option should work but I am not sure the above will...
wget -O whateverfilenamerusaderdemo.exe http://www.gamespot.com/cgi/chkpt.p...rusaderdemo.exe
magpie77
12-13-2004, 09:08 PM
Hi,
Thanks. Just tried it and it doesnt work Im afraid :\
magpie77
12-13-2004, 09:10 PM
Choon missed your post.
I tried your version and it only saved 700 bytes to the file name. Yet the file is 90MB. So it didnt work. Darn really need this working.
Pls any other way?
Captian_Spike
12-13-2004, 09:14 PM
edit: Sorry misunderstood the question
Why not download it then upload via ftp. Or use a text based browser such as links or lynx to get it.
choon
12-13-2004, 09:21 PM
Originally posted by magpie77
Choon missed your post.
I tried your version and it only saved 700 bytes to the file name. Yet the file is 90MB. So it didnt work. Darn really need this working.
Pls any other way?
What is the actual URL please... if your URL has & in it you need to escape it by adding an \ before each & in your URL.
magpie77
12-14-2004, 03:40 AM
u2mike well I gotta save my bandwidth. Broadband bw is expensive where I live. And it is must faster to get the server the command to fetch it. We add files a lot.
Choon the full URL is
http://www.gamespot.com/cgi/chkpt.php?
s=2877010&c=demo_ftp_561237&site=
1&u=http%3A%2F%2Fdownload2.gamespot.
com%2Fd3%2Fgsc%2Fstrategy%2F
strongholdcrusader%2F
strongholdcrusaderdemo.exe
I sliced the URL so forum wouldnt chew half of it.
What you think?
Thank you all for your time.
choon
12-14-2004, 03:53 AM
Try this:
wget -O test.exe http://www.gamespot.com/cgi/chkpt.php?s=2877010\&c=demo_ftp_561237\&site=1\&u=http%3A%2F%2Fdownload2.gamespot.com%2Fd3%2Fgsc%2Fstrategy%2Fstrongholdcrusader%2Fstrongholdcrusaderdemo.exe
magpie77
12-14-2004, 04:09 AM
choone I get this:
Resolving download2.gamespot.com... done.
Connecting to download2.gamespot.com[216.239.126.245]:80... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
00:55:38 ERROR 307: Temporary Redirect.
Mxhub
12-14-2004, 05:11 AM
There's a need to login to gamespot system in order to download the file.
Try this:
wget http://username:password@download2.gamespot.com/d3/gsc/strategy/strongholdcrusader/strongholdcrusaderdemo.exe