Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $curl = curl_init();
- curl_setopt_array($curl, [
- CURLOPT_URL => 'http://smartweb.co.id',
- CURLOPT_TIMEOUT => 300,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_SSL_VERIFYHOST => 0,
- CURLOPT_SSL_VERIFYPEER => false, // this line makes it work under https
- ]);
- $response = curl_exec($curl);
- $err = curl_error($curl);
- curl_close($curl);
- var_dump($err);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement