Leo Lagos
2018-10-03 19:03:49 UTC
Hi,
I've being testing some REST API with curl, and today I was given a
different api-specific user to use. Problem is the password has some
special chars.
Now, this GET request works fine with my personal user. So method is OK.
Also, this "apiuser" works fine in Postman.
However, in curl I've been unable to figure out the correct escaping for -u:
$ curl -stderr -u "apiuser:jsd2018%##" -G http://*****
...
<p>Basic Authentication Failure - Reason :
AUTHENTICATION_DENIED</p>
...
However, in Postman, I can see the correct result using same user/password.
{
"size": 2,
"start": 0,
"limit": 50,
"isLastPage": true,
...
"values": [
...
]
}
So, could someone please help me figure out the obvious error I'm making?
Thanks in advance!
Regards,
I've being testing some REST API with curl, and today I was given a
different api-specific user to use. Problem is the password has some
special chars.
Now, this GET request works fine with my personal user. So method is OK.
Also, this "apiuser" works fine in Postman.
However, in curl I've been unable to figure out the correct escaping for -u:
$ curl -stderr -u "apiuser:jsd2018%##" -G http://*****
...
<p>Basic Authentication Failure - Reason :
AUTHENTICATION_DENIED</p>
...
However, in Postman, I can see the correct result using same user/password.
{
"size": 2,
"start": 0,
"limit": 50,
"isLastPage": true,
...
"values": [
...
]
}
So, could someone please help me figure out the obvious error I'm making?
Thanks in advance!
Regards,