summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-12-26 10:58:37 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-12-26 23:29:23 +0100
commit901392cbb7939f43b7e7ed2b39135b45416a2714 (patch)
treefd74a1a6370ba56fcd76cd15cb052d352fbcb076 /include
parentcf174810db32c362775349e9afe5543c0e9cc18b (diff)
downloadcurl-901392cbb7939f43b7e7ed2b39135b45416a2714.tar.gz
urlapi: add CURLU_PUNYCODE
Allows curl_url_get() get the punycode version of host names for the host name and URL parts. Extend test 1560 to verify. Closes #10109
Diffstat (limited to 'include')
-rw-r--r--include/curl/urlapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/curl/urlapi.h b/include/curl/urlapi.h
index e15c213cc..9e21df165 100644
--- a/include/curl/urlapi.h
+++ b/include/curl/urlapi.h
@@ -62,6 +62,7 @@ typedef enum {
CURLUE_BAD_SCHEME, /* 27 */
CURLUE_BAD_SLASHES, /* 28 */
CURLUE_BAD_USER, /* 29 */
+ CURLUE_LACKS_IDN, /* 30 */
CURLUE_LAST
} CURLUcode;
@@ -95,6 +96,7 @@ typedef enum {
#define CURLU_NO_AUTHORITY (1<<10) /* Allow empty authority when the
scheme is unknown. */
#define CURLU_ALLOW_SPACE (1<<11) /* Allow spaces in the URL */
+#define CURLU_PUNYCODE (1<<12) /* get the host name in pynycode */
typedef struct Curl_URL CURLU;