Mercurial > hg > extraction-interface
comparison models/extractapp.php @ 108:025530e37dcd extractapp
for ssl protocol
author | Calvin Yeh <cyeh@mpipw-berlin.mpg.com> |
---|---|
date | Tue, 21 Mar 2017 18:23:05 +0100 |
parents | e542b161d907 |
children | 7bdbc7fc7936 |
comparison
equal
deleted
inserted
replaced
107:7f2c5d542616 | 108:025530e37dcd |
---|---|
591 } | 591 } |
592 | 592 |
593 | 593 |
594 // set up the curl resource | 594 // set up the curl resource |
595 $ch = curl_init(); | 595 $ch = curl_init(); |
596 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | |
596 curl_setopt($ch, CURLOPT_URL, $save_url); | 597 curl_setopt($ch, CURLOPT_URL, $save_url); |
597 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | 598 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
598 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); | 599 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); |
599 curl_setopt($ch, CURLOPT_POST, true); | 600 curl_setopt($ch, CURLOPT_POST, true); |
600 curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); | 601 curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); |