Encoding # in FTP user/password within URL

5

2

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?

ripper234

Posted 2009-10-25T17:22:38.140

Reputation: 9 293

This method works fine in Firefox. – mr-euro – 2009-10-26T07:29:09.450

Indeed, I tested with Firefox and Wireshark, and pass%231 is being transmitted as pass#1. – Arjan – 2009-10-26T09:22:09.660

Answers

5

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

ftp://foo:pass%231@domain.tld:port

mr-euro

Posted 2009-10-25T17:22:38.140

Reputation: 461

https://en.wikipedia.org/wiki/Percent-encoding - Has to use Percent-Encoding. – YumYumYum – 2019-01-31T07:43:39.773