Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linux curl: Usename with @ in it

Posted on 2013-11-13
3
Medium Priority
?
235 Views
Last Modified: 2013-11-13
This does not work because there is an @ in the username:
curl -kX -u nlbdmobz@sharklasers.com:password123 GET https://zqzqzqz555.couchappy.com/site/www/zzz/hello.txt

Open in new window

0
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 19

Expert Comment

by:xterm
ID: 39646361
Put a backslash (\) in front of the @ sign:

curl -kX -u nlbdmobz\@sharklasers.com:password123 GET https://zqzqzqz555.couchappy.com/site/www/zzz/hello.txt
0
 
LVL 16

Author Comment

by:hankknight
ID: 39646630
No, that does not work.  Please test it.  The example I provided uses a real site with a real username and password.  Thanks.
0
 
LVL 19

Accepted Solution

by:
xterm earned 2000 total points
ID: 39646685
Your syntax is just wrong now that I think about it.. this works fine for me:

user@hp:~> curl -k -u nlbdmobz@sharklasers.com:password123 -X GET https://zqzqzqz555.couchappy.com/site/www/zzz/hello.txt
Hello Worlduser@hp:~>
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question