-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,11 @@ | |
use Yii; | ||
|
||
/** | ||
* CurlTransport sends HTTP messages using [Client URL Library (cURL)](http://php.net/manual/en/book.curl.php) | ||
* CurlTransport sends HTTP messages using [Client URL Library (cURL)](https://php.net/manual/en/book.curl.php) | ||
* | ||
* Note: this transport requires PHP 'curl' extension installed. | ||
* | ||
* For this transport, you may setup request options as [cURL Options](http://php.net/manual/en/function.curl-setopt.php) | ||
* For this transport, you may setup request options as [cURL Options](https://php.net/manual/en/function.curl-setopt.php) | ||
* | ||
* @author Paul Klimov <[email protected]> | ||
* @since 2.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,9 @@ | |
use yii\helpers\Inflector; | ||
|
||
/** | ||
* StreamTransport sends HTTP messages using [Streams](http://php.net/manual/en/book.stream.php) | ||
* StreamTransport sends HTTP messages using [Streams](https://php.net/manual/en/book.stream.php) | ||
* | ||
* For this transport, you may setup request options using [Context Options](http://php.net/manual/en/context.php) | ||
* For this transport, you may setup request options using [Context Options](https://php.net/manual/en/context.php) | ||
* | ||
* @author Paul Klimov <[email protected]> | ||
* @since 2.0 | ||
|
@@ -60,7 +60,7 @@ public function send($request) | |
$context = stream_context_create($contextOptions); | ||
$stream = fopen($url, 'rb', false, $context); | ||
$responseContent = stream_get_contents($stream); | ||
// see http://php.net/manual/en/reserved.variables.httpresponseheader.php | ||
// see https://php.net/manual/en/reserved.variables.httpresponseheader.php | ||
$responseHeaders = (array)$http_response_header; | ||
fclose($stream); | ||
} catch (\Exception $e) { | ||
|
@@ -96,4 +96,4 @@ private function composeContextOptions(array $options) | |
} | ||
return $contextOptions; | ||
} | ||
} | ||
} |