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?

link|improve this question

64% accept rate
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
feedback

1 Answer

up vote 2 down vote accepted

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

ftp://foo:pass%231@domain.tld:port
link|improve this answer
user:pass@domain.tld – mr-euro Oct 25 '09 at 17:27
being censored here by superuser... add ftp:// in front of the above. – mr-euro Oct 25 '09 at 17:28
it's not censored, just removed from the displayed text (markdown converts it to a link, and the ftp:// is in the link correctly). – quack quixote Oct 25 '09 at 17:34
yes, I was just being funny... – mr-euro Oct 25 '09 at 17:42
The password contains a hash! – innaM Oct 25 '09 at 17:49
show 3 more comments
feedback

Your Answer

 
or
required, but never shown

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