Skip to content
Snippets Groups Projects
Commit c79c0b32 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

modified fetcher to accept optional curlopts

parent c268ebdb
No related branches found
No related tags found
3 merge requests!1895Development,!1754Development,!1738Resolve "Switch Adgoal API"
...@@ -198,6 +198,10 @@ class RequestFetcher extends Command ...@@ -198,6 +198,10 @@ class RequestFetcher extends Command
CURLOPT_TIMEOUT => 7, CURLOPT_TIMEOUT => 7,
)); ));
if (!empty($job["curlopts"])) {
curl_setopt_array($ch, $job["curlopts"]);
}
if (!empty($this->proxyhost) && !empty($this->proxyport) && !empty($this->proxyuser) && !empty($this->proxypassword)) { if (!empty($this->proxyhost) && !empty($this->proxyport) && !empty($this->proxyuser) && !empty($this->proxypassword)) {
curl_setopt($ch, CURLOPT_PROXY, $this->proxyhost); curl_setopt($ch, CURLOPT_PROXY, $this->proxyhost);
curl_setopt($ch, CURLOPT_PROXYUSERPWD, $this->proxyuser . ":" . $this->proxypassword); curl_setopt($ch, CURLOPT_PROXYUSERPWD, $this->proxyuser . ":" . $this->proxypassword);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment