Modify user-agent string
This commit is contained in:
parent
c9cefebb63
commit
261cd07adf
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ abstract class PatchBase {
|
||||||
private function curl(string $url, array $opts) {
|
private function curl(string $url, array $opts) {
|
||||||
if ($ch = curl_init()) {
|
if ($ch = curl_init()) {
|
||||||
curl_setopt($ch, CURLOPT_URL, $url);
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||||||
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; +http://www.patchbot.de/) Gecko/20100101 Patchbot/1.0');
|
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; +http://lange.tel/) Gecko/20100101 PatchCollector/1.0');
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue