mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:53:32 +03:00
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
This commit is contained in:
parent
cf174810db
commit
901392cbb7
10 changed files with 90 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue