Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linux curl: Usename with @ in it

Posted on 2013-11-13
3
Medium Priority
?
237 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
  • 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

916 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