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.
1 parent 6b668dd commit 95950b9Copy full SHA for 95950b9
src/HttpRequest.php
@@ -22,6 +22,10 @@ public function __construct () {
22
curl_setopt($this->_ch, CURLOPT_RETURNTRANSFER, true);
23
}
24
25
+ public function setBasicAuth($username, $password) {
26
+ curl_setopt($this->_ch, CURLOPT_USERPWD, $username . ":" . $password);
27
+ }
28
+
29
public function setHeaders($headers = array())
30
{
31
$reformated = [];
0 commit comments