The execution of the "curl" command performed from the Control-M/Agent owner account fails with the error:
curl: (48) An unknown option was passed in to libcurl
Checking for "curl" version you get the following:
myserver% curl -V
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.44.0 zlib/1.2.8
Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp
Features: IPv6 Largefile libz unix-sockets
myserver% ldd /usr/bin/curl
libcurl.so.4 => <agenthome>/ctm/exe/libcurl.so.4 (0x00007f750ee04000)
myserver% ls -l <agenthome>/ctm/exe/libcurl*
lrwxrwxrwx 1 ctmagent controlm 57 5. Dez 11:36 libcurl.so -> <agenthome>/ctm/cm/cm_shared/curl/7.44.0/libcurl.so
lrwxrwxrwx 1 ctmagent controlm 57 5. Dez 11:36 libcurl.so.4 -> <agenthome>/ctm/cm/cm_shared/curl/7.44.0/libcurl.so
We see that the curl command uses the libcurl.so library located in the directory:
<agenthome>/ctm/cm/cm_shared/curl/7.44.0/
This behavior occurs since the libcurl library supplied in the cm_shared directory is pointed to by a symbolik link in the Control-M/Agent executable directory which is listed in the LD_LIBRARY_PATH for the Control-M owner account. Due to this, ALL curl commands executed by the Control-M/Agent owner will use the BMC supplied library which doesn't implement all the curl features leading to the "unknown option" error messages.For instance, it doesn't implement the "https" protocol.