Solved

Linux curl: Usename with @ in it

Posted on 2013-11-13
3
229 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 500 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Setting up Two Three NICs with One on a Different Subnet 22 76
wipe a usb using python 5 45
expectj telnet failing 5 35
centos linux 65 125
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

775 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