Skip to content

Commit

Permalink
Merge pull request #63 from iazaran/feature/curl
Browse files Browse the repository at this point in the history
Feature/curl
  • Loading branch information
iazaran authored Nov 6, 2022
2 parents 3aba8b7 + 80e9b5a commit dd12a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Register an event listener and trigger it when needed
- **R::runScript(...)**
Run R script (if you have R installed)
- **HttpClient::cURL(...)**
Run cURL script to send a request (Not completed yet)
Run cURL script to send a request

#### Run Web App:
- Install docker and docker-compose if needed
Expand Down
1 change: 1 addition & 0 deletions src/App/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static function cURL(
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HEADER => true,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_HTTPAUTH => $isBasicAuth ? CURLAUTH_ANY : '',
CURLOPT_USERPWD => $isBasicAuth ? implode(':', array_values($basicAuth)) : '',
CURLOPT_NOBODY => $isBody,
CURLOPT_CUSTOMREQUEST => $method,
Expand Down

0 comments on commit dd12a83

Please sign in to comment.