Lines Matching refs:curl
57 $curl = curl_init();
59 curl_setopt($curl, CURLOPT_URL, $stamperUrl);
60 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
61 curl_setopt($curl, CURLOPT_BINARYTRANSFER, 1);
62 curl_setopt($curl, CURLOPT_POST, 1);
63 curl_setopt($curl, CURLOPT_POSTFIELDS, $bytes);
65 $bytes = curl_exec($curl);
68 throw new GTException("Error creating timestamp, CURL error: " . curl_error($curl));
96 $curl = curl_init();
98 curl_setopt($curl, CURLOPT_URL, $verifierUrl);
99 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
100 curl_setopt($curl, CURLOPT_BINARYTRANSFER, 1);
101 curl_setopt($curl, CURLOPT_POST, 1);
102 curl_setopt($curl, CURLOPT_POSTFIELDS, $bytes);
104 $bytes = curl_exec($curl);
107 throw new GTException("Error extending timestamp, CURL error: " . curl_error($curl));
175 $curl = curl_init();
177 curl_setopt($curl, CURLOPT_URL, $verifierUrl);
178 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
179 curl_setopt($curl, CURLOPT_BINARYTRANSFER, 1);
180 curl_setopt($curl, CURLOPT_POST, 1);
181 curl_setopt($curl, CURLOPT_POSTFIELDS, $bytes);
183 $bytes = curl_exec($curl);
312 $curl = curl_init();
314 curl_setopt($curl, CURLOPT_URL, $url);
315 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
316 curl_setopt($curl, CURLOPT_BINARYTRANSFER, 1);
318 $bytes = curl_exec($curl);
321 … throw new GTException("Error downloading publications file, CURL error: " . curl_error($curl));