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.

I am trying to access a password-protected ftp site. I have user "foo" pass "pass#1" When I enter them directly, it works.

I am now trying to craft a single URL that contains the user/pass within (e.g. ftp://foo:pass%231@ftp.arsecommerce.com/), but it doens't work. I tried URLEncoding the # and failed.

How do I properly encode the # sign?

share|improve this question
    
This method works fine in Firefox. –  mr-euro Oct 26 '09 at 7:29
    
Indeed, I tested with Firefox and Wireshark, and pass%231 is being transmitted as pass#1. –  Arjan Oct 26 '09 at 9:22
add comment

1 Answer

up vote 3 down vote accepted

Use %23 to replace the hash # sign in pass#1.

ftp://foo:pass%231@domain.tld:port
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.