I have this command
curl -k '"url."' -d 'APACScommand=NewRequest' -d 'data="XML"
I want to use the curl
library of PHP.
I guess for -k
flag I just call
curl_init($url)
I know that -d
stands for data. Should I use something like this?
curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
I see there are two data flag, isn't the second one going to override the first?
Edit
I've seen that -k
flag may be replaced by
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
is it correct?Or it isn't even necessary to add it?