示例#1
0
文件: rest.c 项目: megrimm/PuRestJson
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);
	}
}
示例#2
0
文件: ctw.c 项目: quahada/PuRestJson
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);
}