LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-05-2010, 06:36 PM   #1
s.villanueva
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
How to escape "at" character in the username of an ftp url


Hi,

i have a username like jim@hisdomain.com .

Unfortunately, i have a software that needs a url like ftp://user@host .

I try ftp://jim\@hisdomain.com@thehost but it fails and is the same if i try ftp shell command ftp jim\@hisdomain.com@thehost .
The ftp command thinks the host is just after the first "@", and try to connect to hisdomain.com@thehost

Is there any escape character fort the at character?

I thank you in advance.
 
Old 02-06-2010, 07:47 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Try enclosing your username in double quotes:
ftp://"jim@hisdomain.com"@thehost
 
Old 02-06-2010, 08:08 AM   #3
s.villanueva
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi,

the doubles quotes doesn't work.

I have tried the backslash before at in username, the simple/double quotes enclosing the username.

For a real example, url ftp://"sv@symbiote-technology.com"@ftp.symbiote-technology.com fails.

But if i replace the username by anonymous or any other username without a at , it works.

Last edited by s.villanueva; 02-06-2010 at 08:11 AM.
 
Old 02-06-2010, 08:46 AM   #4
s.villanueva
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I have replaced the "@" character of the username with the "+" and that works.
 
Old 02-22-2011, 10:57 AM   #5
AgentJJ22
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
Hey s.villanueva!
Now that it works, how does it look when written out?
Thanks!
 
Old 11-23-2011, 03:48 PM   #6
sucitivel
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Relevant Reply

I hate when people's solutions are to simply remove the problem rather than deal with it.

All you have to do to escape special characters in your ftp password is find the hexidecimal value of the value to be escaped, and prefix it with a %

hence the password b@ner would now be b%40ner
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop bash from replacing "~/" with "/home/username"? daihard Linux - Software 8 08-22-2010 02:32 PM
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
[SOLVED] Curiousity: FTP via Kget = "Username+pw req'd for this site" but FTP via Wget doesn't GrapefruiTgirl Linux - Software 6 09-18-2009 01:23 PM
on url "http://localhost/" error ""The requested URL could not be retrieved " renuaseri Linux - Newbie 1 04-07-2009 12:23 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration