Skip to content

Add an HTTP(S) driver #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidstrauss
Copy link
Contributor

Adds a driver to POST to a specified URL with each event. Optionally, the client can verify the server using a certificate authority -- or even use its own client certificate. Uses libcurl, which should be available on most systems building or running PHP extensions.

@davidstrauss davidstrauss changed the title Initial HTTP(S) driver Add an HTTP(S) driver Apr 28, 2016
@davidstrauss davidstrauss force-pushed the https-driver branch 2 times, most recently from 5d5db4d to 10836dc Compare April 29, 2016 20:23
@@ -272,6 +294,9 @@ static PHP_GINIT_FUNCTION(apm)
*next = apm_driver_socket_create();
next = &(*next)->next;
#endif
#ifdef APM_DRIVER_HTTP
*next = apm_driver_http_create();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the pattern would be to include next = &(*next)->next; with the HTTP driver, static analysis doesn't like assignment to an unused variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant