Skip to content

Commit aa22e33

Browse files
change user agent
1 parent 52b83f9 commit aa22e33

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/php/libsdk/SDK/FileOps.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ protected function download(string $url, string $dest_fn = NULL) : ?string
133133
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
134134
}
135135

136-
//curl_setopt($ch, CURLOPT_HEADER, false);
136+
curl_setopt($ch, CURLOPT_HEADER, true);
137137
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
138138
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
139139
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
@@ -146,7 +146,8 @@ protected function download(string $url, string $dest_fn = NULL) : ?string
146146
var_dump(curl_setopt($ch, CURLOPT_HTTPHEADER, ['Accept: text/plain','X-custom-header: top1','Authorization: Bearer '.$token]));
147147
}
148148

149-
curl_setopt($ch, CURLOPT_USERAGENT, Config::getSdkUserAgentName());
149+
curl_setopt($ch, CURLOPT_USERAGENT, 'test');
150+
//curl_setopt($ch, CURLOPT_USERAGENT, Config::getSdkUserAgentName());
150151

151152
echo "curl_error=". curl_error($ch) ."\n";
152153

0 commit comments

Comments
 (0)