"Tomislav Goles" <[EMAIL PROTECTED]> writes: > Now I need to add the twist where username account info > resides on another machine (i.e. machine2 which by the way > is on the same network as machine1) So I need to do something > like the following: > > $ wget ftp://username:[EMAIL PROTECTED]@machine1.com/file.txt > > which is of course not the syntax wget understands.
Use: $ wget ftp://username:[EMAIL PROTECTED]/file.txt However, this will not work on Wget 1.8.1 due to a bug in handling URL-encoded passwords. You can remedy that with this patch: --- wget-1.8.1.orig/src/url.c +++ wget-1.8.1/src/url.c @@ -528,6 +528,11 @@ memcpy (*user, str, len); (*user)[len] = '\0'; + if (*user) + decode_string (*user); + if (*passwd) + decode_string (*passwd); + return 1; } I plan to implement this behavior automagically when you set the FTP proxy to ftp://machine1.com/.
