Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do i use a web browser to FTP with a user/pass where the pass has a @ in it?

Example:

ftp://user:p@ssword@192.168.1.1

the above will not work.

share|improve this question

migrated from stackoverflow.com Oct 7 '10 at 6:32

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

up vote 6 down vote accepted

Maybe ftp://user:p%40ssword@192.168.1.1?

share|improve this answer
    
I thought this as well, I get a 530 when i try this method. – Justin808 Oct 4 '10 at 21:04
    
@Justin: If that password is correct, maybe the ftp server just can't handle a password encoded like that. – Michael Petrotta Oct 4 '10 at 21:07
    
I'll double check the server. Thanks – Justin808 Oct 4 '10 at 21:11
    
The above answer should work, i've used similar for usernames that contain a @ sign. – Sirex Oct 7 '10 at 8:45

You'll need to encode the @. See this page for a reference:

This encoding (which is defined by URL specifications, not HTML specifications) consists of using the percent sign followed by two hexadecimal digits, presenting the code position.

The at-sign is at code position 40 (hex).

share|improve this answer
1  
+1. See also ftp.funet.fi/pub/doc/rfc/rfc1738.txt (linked from there) p.2 – Potatoswatter Oct 4 '10 at 21:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .