* - request.method
* - request.data
* - request.proxyServer
+ * - request.proxyPort
* - request.proxyUser
* - request.proxyPass
* - request.timeout
protected $_proxyServer = null;
/**
+ * Proxy port
+ * @var string
+ */
+ protected $_proxyPort = null;
+
+ /**
* Proxy username
* @var string
*/
// Proxy settings
if ($this->proxyServer) {
curl_setopt($curl, CURLOPT_PROXY, $this->proxyServer);
+ if ($this->proxyPort) {
+ curl_setopt($curl, CURLOPT_PROXYPORT, $this->proxyPort);
+ }
if ($this->proxyUsername && $this->proxyPassword) {
curl_setopt($curl, CURLOPT_PROXYUSERPWD, $this->proxyUsername . ':' . $this->proxyPassword);
curl_setopt($curl, CURLOPT_PROXYAUTH, $this->_httpAuthScheme($this->proxyAuthenticationScheme));
// Proxy settings
if ($this->proxyServer) {
$opts['http']['proxy'] = 'tcp://' . $this->proxyServer;
+ if ($this->proxyPort) {
+ $opts['http']['proxy'] .= ':' . $this->proxyPort;
+ }
$opts['http']['request_fulluri'] = true;
if ($this->proxyUsername && $this->proxyPassword) {
// @TODO check $this->proxyAuthenticationScheme
// Proxy settings
if ($this->proxyServer) {
$httpOptions['proxyhost'] = $this->proxyServer;
+ if ($this->proxyPort) {
+ $httpOptions['proxyport'] = $this->proxyPort;
+ }
if ($this->proxyUsername && $this->proxyPassword) {
$httpOptions['proxyauth'] = $this->proxyUsername . ':' . $this->proxyPassword;
$httpOptions['proxyauthtype'] = $this->_httpAuthScheme($this->proxyAuthenticationScheme);