Skip to content

Commit dd12a83

Browse files
authored
Merge pull request #63 from iazaran/feature/curl
Feature/curl
2 parents 3aba8b7 + 80e9b5a commit dd12a83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Register an event listener and trigger it when needed
7070
- **R::runScript(...)**
7171
Run R script (if you have R installed)
7272
- **HttpClient::cURL(...)**
73-
Run cURL script to send a request (Not completed yet)
73+
Run cURL script to send a request
7474

7575
#### Run Web App:
7676
- Install docker and docker-compose if needed

src/App/HttpClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public static function cURL(
5959
CURLOPT_FOLLOWLOCATION => true,
6060
CURLOPT_HEADER => true,
6161
CURLOPT_HTTPHEADER => $headers,
62+
CURLOPT_HTTPAUTH => $isBasicAuth ? CURLAUTH_ANY : '',
6263
CURLOPT_USERPWD => $isBasicAuth ? implode(':', array_values($basicAuth)) : '',
6364
CURLOPT_NOBODY => $isBody,
6465
CURLOPT_CUSTOMREQUEST => $method,

0 commit comments

Comments
 (0)