Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
documentation:2.1:restservices [2019/06/15 22:42]
cmaudoux [Authentication]
documentation:2.1:restservices [2020/04/10 20:23] (current)
cmaudoux [Authentication]
Line 39: Line 39:
 curl -H "​Accept:​ application/​json"​ -d user=rtyler -d password=rtyler http://​auth.example.com/​ | json_pp curl -H "​Accept:​ application/​json"​ -d user=rtyler -d password=rtyler http://​auth.example.com/​ | json_pp
 </​code>​ </​code>​
 +
 +<note important>​With ''​cURL > 7.18.0'',​ to include special characters like @, & or + in the cURL POST data:
 +<​code>​
 +curl -H "​Accept:​ application/​json"​ -d name=rtyler --data-urlencode passwd=@31&​3+*J http://​auth.example.com/​ | json_pp
 +</​code>​
 +</​note>​
 +
   * Response for bad authentication:​   * Response for bad authentication:​
 <code javascript>​ <code javascript>​