Re: HTTPS with OpenSSL
- Posted by jmduro Aug 04, 2016
- 3111 views
ghaberek said...
Not sure how necessary this approach is when all I need are constant values...
I agree. I prefered to skip all unneeded code.
enum type CURLoption CURLOPT_WRITEDATA = 10001, /* This is the FILE * or void * the regular output should be written to. */ CURLOPT_URL = 10002, /* The full URL to get/put */ CURLOPT_PORT = 3, /* Port number to connect to, if other than default. */ CURLOPT_PROXY = 10004, /* Name of proxy to use. */ CURLOPT_USERPWD = 10005, /* "user:password;options" to use when fetching. */ CURLOPT_PROXYUSERPWD = 10006, /* "user:password" to use with proxy. */ CURLOPT_RANGE = 10007, /* Range to get, specified as an ASCII string. */ /* not used */ CURLOPT_READDATA = 10009, /* Specified file stream to upload from (use as input): */ CURLOPT_ERRORBUFFER = 10010, /* Buffer to receive error messages in, must be at least CURL_ERROR_SIZE * bytes big. If this is not used, error messages go to stderr instead: */ CURLOPT_WRITEFUNCTION = 20011, /* Function that will be called to store the output (instead of fwrite). The * parameters will use fwrite() syntax, make sure to follow them. */ CURLOPT_READFUNCTION = 20012, /* Function that will be called to read the input (instead of fread). The * parameters will use fread() syntax, make sure to follow them. */
Jean-Marc