I am attempting to consume a .NET webservice that is requesting a RequestObject of options and I have no idea how that works in cURL. Does anyone know?
For this webservice: https://uat.petfirsthealthcare.com/pfh.service.webservices/coreservice.svc/json/GetBreedList I need to send a Request Object 'CoreServiceGetBreedListRequest' with a value SpeciesId of 1.
Here is what I have, but missing the value.
$request = 'https://uat.petfirsthealthcare.com/pfh.service.webservices/coreservice.svc/json/GetBreedList';
$session = curl_init();
curl_setopt($session, CURLOPT_URL, $request);
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_SSLVERSION,3);
curl_setopt($session, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($session, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
curl_setopt($session, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($session, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
$response = curl_exec($session);
curl_close($session);
Thanks for any help!