Web Hosting Talk







View Full Version : what other ways do we have in WGET?


zmontano69
12-09-2003, 07:28 AM
i know you can retrieve a file using these TWO commands:

wget http://urlofsite/filename
or
wget http://ipofsite/filename

well, this file that I am trying to retrieve is located on an IPless domain (only the server has an IP). So, I tried the following:

wget http://serverip/~accountname/filename

but I kept getting a 404 not found error. very confused because the http address is correct. any help?

Security Group
12-09-2003, 07:48 AM
why not use: wget http://domain/filename ?

zmontano69
12-09-2003, 08:05 AM
doensn't work... i still get a 404 error
its weird, i am so sure that the addresses i use are correct, but with no luck. any ideas?

zmontano69
12-09-2003, 08:09 AM
now i am getting a 302 error... whats that?

eBoundary
12-09-2003, 10:24 AM
escape the special character http://serverip/\~accountname/filename

sehe
12-09-2003, 01:14 PM
Originally posted by eBoundary
escape the special character http://serverip/\~accountname/filename

or use
wget "http://serverip/~accountname/filename"

302 = Found
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

sprintserve
12-09-2003, 03:36 PM
Not all servers support using ~accountname to resolve to the account. Make sure that particular server support it.