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

CurlEasy.SetOpt() string parameter bug #2

Closed
masroore opened this issue Oct 5, 2014 · 1 comment
Closed

CurlEasy.SetOpt() string parameter bug #2

masroore opened this issue Oct 5, 2014 · 1 comment

Comments

@masroore
Copy link
Owner

masroore commented Oct 5, 2014

Even setting the parameters works and does not work. I think it should work interchangeably so and so.

//easy.UserAgent = "Do UserAgent"; // Works
easy.SetOpt(CurlOption.UserAgent, "Do UserAgent SetOpt"); // Does not work

//easy.Proxy = "xxx.xxx.xxx.xxx:21320"; // Works
easy.SetOpt(CurlOption.Proxy, "xxx.xxx.xxx.xxx:21320"); // Does not work

//easy.PostFields = postData; // Works :)
easy.SetOpt(CurlOption.PostFields, postData); // Does not work

//easy.Encoding = "gzip, deflate"; // Works
easy.SetOpt(CurlOption.Encoding, "gzip, deflate"); // Does not work

easy.FollowLocation = true; // Works or
easy.SetOpt(CurlOption.FollowLocation, true); // Works

At the time, please check yourself

@chucklu
Copy link

chucklu commented Jul 22, 2016

@masroore clone the source code,and I find the curlEasy.Url ="www.baidu.com" works
however,curlEasy.SetOpt does not work

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

No branches or pull requests

2 participants