When it comes to make HTTP calls, I always use curl as it is a ubiquitous tool for the job.
Today, I discover that I can use curl for some other tasks.
curl supports the FILE protocol (file:/), therefore it is possible to “download” a file:
| |
_(See http://askubuntu.com/questions/17275/progress-and-speed-with-cp)
Normally, when I needed to query an LDAP server, ldapsearch is always the de facto tool though it may not be installed on some environment.
Nowadays, I tends to use Docker image for LDAP for the job:
| |
Today, I learned that I can achieve the same task with curl:
| |
This is really great as curl may come pre-installed on lots of environments whereas ldapsearch and Docker may not.
If you need a more sophisticated query, consider giving LDAP URL Format a read. It will explain the structure of the URL you could use with curl.