From 5c4fe0d8264a4a4f591d79cefe9676b099bdecf2 Mon Sep 17 00:00:00 2001 From: Jim Fuller Date: Thu, 1 Nov 2018 19:16:15 +0100 Subject: setopt: add CURLOPT_CURLU Allows an application to pass in a pre-parsed URL via a URL handle. Closes #3227 --- include/curl/curl.h | 3 +++ include/curl/typecheck-gcc.h | 1 + 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/curl/curl.h b/include/curl/curl.h index 0b66f1462..5177e3571 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -1872,6 +1872,9 @@ typedef enum { /* Time in ms between connection upkeep calls for long-lived connections. */ CINIT(UPKEEP_INTERVAL_MS, LONG, 281), + /* Specify URL using CURL URL API. */ + CINIT(CURLU, OBJECTPOINT, 282), + CURLOPT_LASTENTRY /* the last unused */ } CURLoption; diff --git a/include/curl/typecheck-gcc.h b/include/curl/typecheck-gcc.h index 244336204..01df7b15f 100644 --- a/include/curl/typecheck-gcc.h +++ b/include/curl/typecheck-gcc.h @@ -363,6 +363,7 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_off_t, (option) == CURLOPT_SSL_CTX_DATA || \ (option) == CURLOPT_WRITEDATA || \ (option) == CURLOPT_RESOLVER_START_DATA || \ + (option) == CURLOPT_CURLU || \ 0) /* evaluates to true if option takes a POST data argument (void* or char*) */ -- cgit v1.2.3