Lines Matching +full:- +full:scheme
8 * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
31 char *scheme; in test() local
38 /* Test that scheme is properly initialized on curl_easy_init. in test()
41 res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in test()
47 if(scheme != NULL) { in test()
48 fprintf(stderr, "%s:%d scheme init failed; expected NULL\n", in test()
63 /* Test that a scheme is properly set after receiving an HTTP resource. in test()
66 res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in test()
72 if(memcmp(scheme, "HTTP", 5) != 0) { in test()
73 fprintf(stderr, "%s:%d scheme of http resource is incorrect; " in test()
76 (scheme == NULL ? "NULL" : "invalid")); in test()
81 /* Test that a scheme is properly initialized on curl_easy_duphandle. in test()
92 res = curl_easy_getinfo(dupe, CURLINFO_SCHEME, &scheme); in test()
98 if(scheme != 0) { in test()
99 fprintf(stderr, "%s:%d scheme init failed; expected NULL\n", in test()
106 /* Test that a scheme is properly initialized on curl_easy_reset. in test()
111 res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in test()
117 if(scheme != 0) { in test()
118 fprintf(stderr, "%s:%d scheme init failed; expected NULL\n", in test()