Nieuw lid |
|
Even wat geprobeerd, het is me gelukt om te proxien. Maar nu wil ik proxien met curl met https, tot zover ben ik gekomen:
$proxies = file("proxy.txt");
shuffle($proxies);
$cUrl = curl_init();
curl_setopt($cUrl, CURLOPT_URL, "https://adminpanel.xxxx.xx");
curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cUrl, CURLOPT_TIMEOUT, 0);
curl_setopt($cUrl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($cUrl, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($cUrl, CURLOPT_HEADER, 1);
curl_setopt($cUrl, CURLOPT_PROXY, $proxies[0]);
$curlPost = 'login=xxxxx&pw=xxxx';
curl_setopt($cUrl, CURLOPT_POST, 1);
curl_setopt($cUrl, CURLOPT_POSTFIELDS, $curlPost);
$pageContent = trim(curl_exec($cUrl));
echo curl_error($cUrl);
curl_close($cUrl);
$proxies = file("proxy.txt"); $cUrl = curl_init(); curl_setopt($cUrl, CURLOPT_URL, "https://adminpanel.xxxx.xx"); curl_setopt($cUrl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($cUrl, CURLOPT_TIMEOUT, 0); curl_setopt($cUrl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($cUrl, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($cUrl, CURLOPT_HEADER, 1); curl_setopt($cUrl, CURLOPT_PROXY, $proxies[0]); $curlPost = 'login=xxxxx&pw=xxxx'; curl_setopt($cUrl, CURLOPT_POST, 1); curl_setopt($cUrl, CURLOPT_POSTFIELDS, $curlPost); $pageContent = trim(curl_exec ($cUrl)); curl_close($cUrl);
Maar nu krijg ik een error: Proxy connection aborted. |