Lines Matching full:curl
20 throw new Exception("You have to install curl first.");
24 $curl = curl_init();
25 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 1);
26 curl_setopt($curl, CURLOPT_TIMEOUT, 1);
27 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
32 curl_setopt($curl, CURLOPT_POST, 1);
34 curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
37 curl_setopt($curl, CURLOPT_PUT, 1);
45 curl_setopt($curl, CURLOPT_URL, $url);
49 // curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
50 // curl_setopt($curl, CURLOPT_USERPWD, "username:password");
51 // curl_setopt($curl, CURLOPT_COOKIEJAR, $ckfile);
53 curl_setopt($curl, CURLOPT_COOKIEFILE, $cookiejar);
54 curl_setopt($curl, CURLOPT_COOKIEJAR, $cookiejar);
57 $content = curl_exec($curl);
58 curl_close($curl);