Linux curl: Usename with @ in it

This does not work because there is an @ in the username:
curl -kX -u GET

Open in new window

LVL 16
Who is Participating?
xtermConnect With a Mentor Commented:
Your syntax is just wrong now that I think about it.. this works fine for me:

user@hp:~> curl -k -u -X GET
Hello Worlduser@hp:~>
Put a backslash (\) in front of the @ sign:

curl -kX -u nlbdmobz\ GET
hankknightAuthor Commented:
No, that does not work.  Please test it.  The example I provided uses a real site with a real username and password.  Thanks.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.