Skip to content

Commit

Permalink
improve chances of successfully gather a response
Browse files Browse the repository at this point in the history
  • Loading branch information
fr0tt committed Aug 15, 2023
1 parent a8b3d1b commit e2d6b99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Services/PostService.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public function getInfo(string $url, $act_as_bot = false)
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: text/html'));
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_TIMEOUT, config('benotes.curl_timeout'));
Expand Down

0 comments on commit e2d6b99

Please sign in to comment.