Exemple #1
0
void rest_sslcheck(t_rest *const rest, const t_floatarg f) {
	if (rest->common.locked) {
		post("rest object is performing request and locked.");
	} else {
		ctw_set_sslcheck((struct _ctw *)rest, (int)f);
	}
}
Exemple #2
0
static void ctw_init(struct _ctw *common) {
	curl_global_init(CURL_GLOBAL_DEFAULT);
	common->base_url_len = 0;
	common->parameters_len = 0;
	common->complete_url_len = 0;
	common->auth_token_len = 0;
	common->http_headers = NULL;
	common->out_file_len = 0;
	common->x_canvas = canvas_getcurrent();

	ctw_set_timeout(common, 0);
	ctw_set_sslcheck(common, 1);
}