Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My FTP password has a colon; when I do a wget with my user name and password, it keeps complaining that a "bad port number" is being used. Is there a solution? I tried the \: trick but did not help.

share|improve this question
add comment

migrated from stackoverflow.com Sep 1 '10 at 7:40

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 6 down vote accepted

Use --password=password or --ftp-password.

share|improve this answer
add comment

You need to encode special characters in your password using URL encoding. For example, if the user is "user1" and the password "12#j" the resulting URL would look as follows:

user1:12%23j@myserver:port

Note, that I replaced the # character with its URL-code %23 .

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.