7 const char *
JAR =
"log/jar506";
14 void *
fire(
void *ptr);
15 char *
suburl(
char *base,
int i);
49 fprintf(stderr,
"lock: no such data: %d\n",data);
52 printf(
"lock: %-6s <%s>: %d\n", what, user->
text, user->
counter);
73 fprintf(stderr,
"unlock: no such data: %d\n",data);
76 printf(
"unlock: %-6s <%s>: %d\n", what, user->
text, user->
counter);
102 printf(
"CURLOPT_SHARE\n" );
105 printf(
"PERFORM\n" );
108 fprintf(stderr,
"perform url '%s' repeat %d failed, curlcode %d\n",
109 tdata->
url, i, (
int)code);
112 printf(
"CLEANUP\n" );
123 int len = strlen(base);
124 char *
url = (
char *)malloc(len+5);
148 user.
text = (
char *)
"Pigs in space";
151 printf(
"GLOBAL_INIT\n" );
155 printf(
"SHARE_INIT\n" );
160 printf(
"CURL_LOCK_DATA_COOKIE\n" );
162 printf(
"CURL_LOCK_DATA_DNS\n" );
175 printf(
"*** run %d\n",i );
184 printf(
"*** run %d\n", i );
191 printf(
"CURLOPT_SHARE\n" );
193 printf(
"CURLOPT_COOKIEJAR\n" );
196 printf(
"PERFORM\n" );
200 printf(
"try SHARE_CLEANUP...\n" );
204 fprintf(stderr,
"curl_share_cleanup succeed but error expected\n");
207 printf(
"SHARE_CLEANUP failed, correct\n" );
211 printf(
"CLEANUP\n" );
218 printf(
"SHARE_CLEANUP\n" );
222 fprintf(stderr,
"curl_share_cleanup failed, code errno %d\n", scode);
225 printf(
"GLOBAL_CLEANUP\n" );
CURLcode curl_global_init(long flags)
Globally initializes cURL given a bitwise set of the different features to initialize.
void lock(CURL *handle, curl_lock_data data, curl_lock_access access, void *useptr)
char * suburl(char *base, int i)
CURLcode curl_easy_perform(CURL *curl)
CURLcode curl_easy_setopt(CURL *curl, CURLoption option,...)
struct curl_slist * sethost(struct curl_slist *headers)
CURLSHcode curl_share_setopt(CURLSH *, CURLSHoption option,...)
CURLSHcode curl_share_cleanup(CURLSH *)
void curl_global_cleanup(void)
Globally cleanup cURL, uses the value of "init_flags" to determine what needs to be cleaned up and ...
GLsizei GLsizei GLenum GLenum const GLvoid * data
struct curl_slist * curl_slist_append(struct curl_slist *, const char *)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
void curl_slist_free_all(struct curl_slist *)
void unlock(CURL *handle, curl_lock_data data, void *useptr)
void curl_easy_cleanup(CURL *curl)
CURL * curl_easy_init(void)
CURLSH * curl_share_init(void)