Skip to content
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

Added AddOption function to add options to be passed to cURL object #33

Closed
wants to merge 1 commit into from
Closed

Conversation

curquhart
Copy link
Contributor

This is for adding a function to add options to the cURL object (AddOption).

In this particular instance, I'm needing to use CURLOPT_PROXY, and while there are certainly other ways to open a proxy connection (although I don't know of any that are as clean), there are many other cURL options that are useful in some circumstances so a means to set them would be good.

I also included curl_setopt in the function itself in case options need to be changed after connecting, so those won't simply be ignored.

Let me know if this looks reasonable!

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.

None yet

1 participant