On Sat, 10 Jan 2015, redmond wrote:

how do i post the json on https(the ssl website has no cert,just like https://www.google.com,it don't need the cert)?

*all* SSL/TLS based communications have certs: http://curl.haxx.se/docs/sslcerts.html

i search google for this,however there is no answer.

Here is part of the answer: http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html

i tried to write the following code, are these correct?

What's the purpose of the read_callback function?

how do i determine the http server respond ok ?

First you need to learn the computer language. Then you make sure you handle return codes. Then when you get an OK return code, you verify that what you got from the server is "ok". What you consider ok is your business.

addition,static method is not allow use in dll

I'm not sure what that tells us.

 pooh.readptr = out
 pooh.sizeleft = strlen(out)

This doesn't seem to be used.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to