-
Notifications
You must be signed in to change notification settings - Fork 39
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
[QUESTION] Can this library be used with a libcurl multi handle? c++ instructions? #84
Comments
If you already uses the curl multi interface, I think you can continue using the same API.
Yes. check out this comment: lwthiker#80 (comment) |
I don't see any header files with the prebuilt libraries so I'm having trouble calling the curl_easy_impersonate() method. I tried to build the library natively on mac with the ./configure --enable-static but I got the following error |
For macOS, you can download the prebuilt binaries on the release page. If you can not somehow call |
sorry for the basic questions but appreciate the help. Looks like I don't actually call that method as it happens internally. I just need to set the CURL_IMPERSONATE environment variables and everything should work automatically using libcurl like normal? Also I see on linux you can use LD_PRELOAD. Is there a mac alternative? |
My networking client is currently like this and I'm looking to be able to have custom headers in my requests. I'm still a little confused on how to accomplish that. https://gist.github.com/eaziz4/8d28d8c8a41c37205b77e0efbdedf29b |
ChatGPT is better at this question.
What is your confusion exactly? |
I currently have a c++ custom http client that uses a curl multi handle for session reuse and to make my calls asynchronous. I want to utilize this library for all of my network calls since my use case is web scraping, but I'm wondering how I should go about that. I also don't see any instructions on how to include this for a c++ project. I would assume I could just replace including libcurl and instead link against the prebuilt static library for my os in my cmake project and that would be that? Any insight would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: