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.

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.

2 Answers 2

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

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.