Home | History | Annotate | Download | only in libtest

Lines Matching refs:protocol

31   long protocol;
38 /* Test that protocol is properly initialized on curl_easy_init.
41 res = curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol);
47 if(protocol != 0) {
48 fprintf(stderr, "%s:%d protocol init failed; expected 0 but is %ld\n",
49 __FILE__, __LINE__, protocol);
63 /* Test that a protocol is properly set after receiving an HTTP resource.
66 res = curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol);
72 if(protocol != CURLPROTO_HTTP) {
73 fprintf(stderr, "%s:%d protocol of http resource is incorrect; "
75 __FILE__, __LINE__, CURLPROTO_HTTP, protocol);
80 /* Test that a protocol is properly initialized on curl_easy_duphandle.
91 res = curl_easy_getinfo(dupe, CURLINFO_PROTOCOL, &protocol);
97 if(protocol != 0) {
98 fprintf(stderr, "%s:%d protocol init failed; expected 0 but is %ld\n",
99 __FILE__, __LINE__, protocol);
105 /* Test that a protocol is properly initialized on curl_easy_reset.
110 res = curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol);
116 if(protocol != 0) {
117 fprintf(stderr, "%s:%d protocol init failed; expected 0 but is %ld\n",
118 __FILE__, __LINE__, protocol);