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 91b29d3 commit d77dfa1Copy full SHA for d77dfa1
src/Optimizely/Event/Dispatcher/CurlEventDispatcher.php
@@ -28,6 +28,17 @@ class CurlEventDispatcher implements EventDispatcherInterface
28
{
29
public function dispatchEvent(LogEvent $event)
30
31
-
+ $curl = curl_init();
32
+ $options = [
33
+ CURLOPT_URL => $event->getUrl(),
34
+ CURLOPT_HEADER => $event->getHeaders(),
35
+ CURLOPT_POSTFIELDS => http_build_query($event->getParams()),
36
+ CURLOPT_POST => 1,
37
+ CURLOPT_CONNECTTIMEOUT_MS => 1
38
+ ];
39
+
40
+ curl_setopt_array($curl, $options);
41
+ curl_exec($curl);
42
+ curl_close($curl);
43
}
-}
44
+}
0 commit comments