Solved

Linux curl: Usename with @ in it

Posted on 2013-11-13
3
222 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
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now