Skip to content

Commit

Permalink
improv. change httpheader
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo committed Aug 27, 2021
1 parent 870c0b5 commit 4b32f79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,9 @@ public function sendMultipleGetRequests($urls)
foreach ($urls as $url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'User-Agent: MineWebCMS'
]);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

Expand Down

0 comments on commit 4b32f79

Please sign in to comment.