Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/curl
File: urlapi.h
#ifndef __CURL_URLAPI_H
[0] Fix | Delete
#define __CURL_URLAPI_H
[1] Fix | Delete
/***************************************************************************
[2] Fix | Delete
* _ _ ____ _
[3] Fix | Delete
* Project ___| | | | _ \| |
[4] Fix | Delete
* / __| | | | |_) | |
[5] Fix | Delete
* | (__| |_| | _ <| |___
[6] Fix | Delete
* \___|\___/|_| \_\_____|
[7] Fix | Delete
*
[8] Fix | Delete
* Copyright (C) 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
[9] Fix | Delete
*
[10] Fix | Delete
* This software is licensed as described in the file COPYING, which
[11] Fix | Delete
* you should have received as part of this distribution. The terms
[12] Fix | Delete
* are also available at https://curl.haxx.se/docs/copyright.html.
[13] Fix | Delete
*
[14] Fix | Delete
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
[15] Fix | Delete
* copies of the Software, and permit persons to whom the Software is
[16] Fix | Delete
* furnished to do so, under the terms of the COPYING file.
[17] Fix | Delete
*
[18] Fix | Delete
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
[19] Fix | Delete
* KIND, either express or implied.
[20] Fix | Delete
*
[21] Fix | Delete
***************************************************************************/
[22] Fix | Delete
[23] Fix | Delete
#ifdef __cplusplus
[24] Fix | Delete
extern "C" {
[25] Fix | Delete
#endif
[26] Fix | Delete
[27] Fix | Delete
/* the error codes for the URL API */
[28] Fix | Delete
typedef enum {
[29] Fix | Delete
CURLUE_OK,
[30] Fix | Delete
CURLUE_BAD_HANDLE, /* 1 */
[31] Fix | Delete
CURLUE_BAD_PARTPOINTER, /* 2 */
[32] Fix | Delete
CURLUE_MALFORMED_INPUT, /* 3 */
[33] Fix | Delete
CURLUE_BAD_PORT_NUMBER, /* 4 */
[34] Fix | Delete
CURLUE_UNSUPPORTED_SCHEME, /* 5 */
[35] Fix | Delete
CURLUE_URLDECODE, /* 6 */
[36] Fix | Delete
CURLUE_OUT_OF_MEMORY, /* 7 */
[37] Fix | Delete
CURLUE_USER_NOT_ALLOWED, /* 8 */
[38] Fix | Delete
CURLUE_UNKNOWN_PART, /* 9 */
[39] Fix | Delete
CURLUE_NO_SCHEME, /* 10 */
[40] Fix | Delete
CURLUE_NO_USER, /* 11 */
[41] Fix | Delete
CURLUE_NO_PASSWORD, /* 12 */
[42] Fix | Delete
CURLUE_NO_OPTIONS, /* 13 */
[43] Fix | Delete
CURLUE_NO_HOST, /* 14 */
[44] Fix | Delete
CURLUE_NO_PORT, /* 15 */
[45] Fix | Delete
CURLUE_NO_QUERY, /* 16 */
[46] Fix | Delete
CURLUE_NO_FRAGMENT /* 17 */
[47] Fix | Delete
} CURLUcode;
[48] Fix | Delete
[49] Fix | Delete
typedef enum {
[50] Fix | Delete
CURLUPART_URL,
[51] Fix | Delete
CURLUPART_SCHEME,
[52] Fix | Delete
CURLUPART_USER,
[53] Fix | Delete
CURLUPART_PASSWORD,
[54] Fix | Delete
CURLUPART_OPTIONS,
[55] Fix | Delete
CURLUPART_HOST,
[56] Fix | Delete
CURLUPART_PORT,
[57] Fix | Delete
CURLUPART_PATH,
[58] Fix | Delete
CURLUPART_QUERY,
[59] Fix | Delete
CURLUPART_FRAGMENT
[60] Fix | Delete
} CURLUPart;
[61] Fix | Delete
[62] Fix | Delete
#define CURLU_DEFAULT_PORT (1<<0) /* return default port number */
[63] Fix | Delete
#define CURLU_NO_DEFAULT_PORT (1<<1) /* act as if no port number was set,
[64] Fix | Delete
if the port number matches the
[65] Fix | Delete
default for the scheme */
[66] Fix | Delete
#define CURLU_DEFAULT_SCHEME (1<<2) /* return default scheme if
[67] Fix | Delete
missing */
[68] Fix | Delete
#define CURLU_NON_SUPPORT_SCHEME (1<<3) /* allow non-supported scheme */
[69] Fix | Delete
#define CURLU_PATH_AS_IS (1<<4) /* leave dot sequences */
[70] Fix | Delete
#define CURLU_DISALLOW_USER (1<<5) /* no user+password allowed */
[71] Fix | Delete
#define CURLU_URLDECODE (1<<6) /* URL decode on get */
[72] Fix | Delete
#define CURLU_URLENCODE (1<<7) /* URL encode on set */
[73] Fix | Delete
#define CURLU_APPENDQUERY (1<<8) /* append a form style part */
[74] Fix | Delete
#define CURLU_GUESS_SCHEME (1<<9) /* legacy curl-style guessing */
[75] Fix | Delete
[76] Fix | Delete
typedef struct Curl_URL CURLU;
[77] Fix | Delete
[78] Fix | Delete
/*
[79] Fix | Delete
* curl_url() creates a new CURLU handle and returns a pointer to it.
[80] Fix | Delete
* Must be freed with curl_url_cleanup().
[81] Fix | Delete
*/
[82] Fix | Delete
CURL_EXTERN CURLU *curl_url(void);
[83] Fix | Delete
[84] Fix | Delete
/*
[85] Fix | Delete
* curl_url_cleanup() frees the CURLU handle and related resources used for
[86] Fix | Delete
* the URL parsing. It will not free strings previously returned with the URL
[87] Fix | Delete
* API.
[88] Fix | Delete
*/
[89] Fix | Delete
CURL_EXTERN void curl_url_cleanup(CURLU *handle);
[90] Fix | Delete
[91] Fix | Delete
/*
[92] Fix | Delete
* curl_url_dup() duplicates a CURLU handle and returns a new copy. The new
[93] Fix | Delete
* handle must also be freed with curl_url_cleanup().
[94] Fix | Delete
*/
[95] Fix | Delete
CURL_EXTERN CURLU *curl_url_dup(CURLU *in);
[96] Fix | Delete
[97] Fix | Delete
/*
[98] Fix | Delete
* curl_url_get() extracts a specific part of the URL from a CURLU
[99] Fix | Delete
* handle. Returns error code. The returned pointer MUST be freed with
[100] Fix | Delete
* curl_free() afterwards.
[101] Fix | Delete
*/
[102] Fix | Delete
CURL_EXTERN CURLUcode curl_url_get(CURLU *handle, CURLUPart what,
[103] Fix | Delete
char **part, unsigned int flags);
[104] Fix | Delete
[105] Fix | Delete
/*
[106] Fix | Delete
* curl_url_set() sets a specific part of the URL in a CURLU handle. Returns
[107] Fix | Delete
* error code. The passed in string will be copied. Passing a NULL instead of
[108] Fix | Delete
* a part string, clears that part.
[109] Fix | Delete
*/
[110] Fix | Delete
CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
[111] Fix | Delete
const char *part, unsigned int flags);
[112] Fix | Delete
[113] Fix | Delete
[114] Fix | Delete
#ifdef __cplusplus
[115] Fix | Delete
} /* end of extern "C" */
[116] Fix | Delete
#endif
[117] Fix | Delete
[118] Fix | Delete
#endif
[119] Fix | Delete
[120] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function