mirror of
https://github.com/Nathanwoodburn/hnschat-web.git
synced 2025-12-06 00:33:01 +11:00
fix: Don't use proxy for curl
This commit is contained in:
@@ -269,7 +269,7 @@
|
||||
function getContents($url) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080");
|
||||
// curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080");
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
|
||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
||||
@@ -283,7 +283,7 @@
|
||||
function getContentsWithCode($url) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080");
|
||||
// curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080");
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
|
||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
||||
@@ -301,7 +301,7 @@
|
||||
function getContentsWithSpoof($url) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080");
|
||||
// curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080");
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
|
||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
||||
|
||||
Reference in New Issue
Block a user