Hi
Can you please help.
I need to use the curl to se something like that:
can you please let me know if it is possible?
Thanks
George
Can you please help.
I need to use the curl to se something like that:
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://{$host}:8443/enterprise/control/agent.php");
}
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTPHEADER,
array("HTTP_AUTH_LOGIN: {$login}", "HTTP_AUTH_PASSWD: {$password}", "HTTP_PRETTY_PRINT: TRUE", "Content-Type: text/xml")
);
can you please let me know if it is possible?
Thanks
George
Hi George,
Not with the standard cURL action. Possibly with my custom cURL [GH] action. If you use that then you can set custom cURLOpts by putting ##CURLOPTS## in the Params/Fields box like this:
Otherwise you an use a Custom Code action and hand-code the cURL call.
Bob
Not with the standard cURL action. Possibly with my custom cURL [GH] action. If you use that then you can set custom cURLOpts by putting ##CURLOPTS## in the Params/Fields box like this:
. . . normal curl params
##CURLOPTS##
CURLOPT_RETURNTRANSFER=true
CURLOPT_POST=true
CURLOPT_SSL_VERIFYPEER=false
CURLOPT_SSL_VERIFYHOST=false
CURLOPT_HTTPHEADER=array("HTTP_AUTH_LOGIN: {$login}", "HTTP_AUTH_PASSWD: {$password}", "HTTP_PRETTY_PRINT: TRUE", "Content-Type: text/xml")
BUT I'm not sure that the array in the last line will work correctly as it will be treated as a string :-( I may be able to fix this if it is a problem.Otherwise you an use a Custom Code action and hand-code the cURL call.
Bob
This topic is locked and no more replies can be posted.