Lines Matching refs:protocol
33 long protocol;
40 /* Test that protocol is properly initialized on curl_easy_init.
44 res = curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol);
51 if(protocol) {
52 fprintf(stderr, "%s:%d protocol init failed; expected 0 but is %ld\n",
53 __FILE__, __LINE__, protocol);
67 /* Test that a protocol is properly set after receiving an HTTP resource.
71 res = curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol);
78 if(protocol != CURLPROTO_HTTP) {
79 fprintf(stderr, "%s:%d protocol of http resource is incorrect; "
81 __FILE__, __LINE__, CURLPROTO_HTTP, protocol);
86 /* Test that a protocol is properly initialized on curl_easy_duphandle.
98 res = curl_easy_getinfo(dupe, CURLINFO_PROTOCOL, &protocol);
105 if(protocol) {
106 fprintf(stderr, "%s:%d protocol init failed; expected 0 but is %ld\n",
107 __FILE__, __LINE__, protocol);
113 /* Test that a protocol is properly initialized on curl_easy_reset.
119 res = curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &protocol);
126 if(protocol) {
127 fprintf(stderr, "%s:%d protocol init failed; expected 0 but is %ld\n",
128 __FILE__, __LINE__, protocol);