We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f002c1 + 546e804 commit f53c11cCopy full SHA for f53c11c
src/BrowserClient.php
@@ -48,17 +48,24 @@ public static function setStorageDirectory($path)
48
/**
49
* Format ip:port or null to use direct connection
50
* @param $proxy_server
51
+ * @param $proxy_type
52
*/
- public function setProxy($proxy_server)
53
+ public function setProxy($proxy_server, $proxy_type = CURLPROXY_HTTP)
54
{
55
$this->options[CURLOPT_PROXY] = $proxy_server;
56
+ $this->options[CURLOPT_PROXYTYPE] = $proxy_type;
57
}
58
59
public function getProxy()
60
61
return !empty($this->options[CURLOPT_PROXY]) ? $this->options[CURLOPT_PROXY] : null;
62
63
64
+ public function getProxyType()
65
+ {
66
+ return !empty($this->options[CURLOPT_PROXYTYPE]) ? $this->options[CURLOPT_PROXYTYPE] : null;
67
+ }
68
+
69
public function setCookieFile($cookie_file)
70
71
$this->cookie_file = $cookie_file;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments