Line 7: |
Line 7: |
| = CURLOPT = | | = CURLOPT = |
| | | |
− | The 50X options are custom, the default values for some of these are set in Curl_init_userdefined. | + | The 50X/900 options are custom, the default values for some of these are set in Curl_init_userdefined. |
| | | |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
| |- | | |- |
| ! CINIT name || CINIT type || CINIT number || CURLoption value || Default value | | ! CINIT name || CINIT type || CINIT number || CURLoption value || Default value |
| + | |- |
| + | | [[#URL]] || STRINGPOINT || 2 || 10002 || |
| |- | | |- |
| | [[#PROXYAUTOCONFIG]] || LONG || 500 || 500 || 1 | | | [[#PROXYAUTOCONFIG]] || LONG || 500 || 500 || 1 |
Line 17: |
Line 19: |
| | [[#UNK501]] || LONG || 501 || 501 || 0 | | | [[#UNK501]] || LONG || 501 || 501 || 0 |
| |- | | |- |
− | | || || 502 || || | + | | || OBJECTPOINT/STRINGPOINT || 502 || 10502 || |
| |- | | |- |
− | | || || 503 || || | + | | || FUNCTIONPOINT || 503 || || |
| |- | | |- |
− | | || || 504 || || | + | | || FUNCTIONPOINT || 504 || || |
| |- | | |- |
− | | || || 505 || || | + | | || OBJECTPOINT/STRINGPOINT || 505 || 10505 || |
| |- | | |- |
| | [[#UNK506]] || LONG || 506 || 506 || 0 | | | [[#UNK506]] || LONG || 506 || 506 || 0 |
| |- | | |- |
| | [[#UNK507]] || LONG || 507 || 507 || | | | [[#UNK507]] || LONG || 507 || 507 || |
| + | |- |
| + | | [[#UNK900]] || LONG || 900 || 900 || |
| |} | | |} |
| + | |
| + | == URL == |
| + | The following only runs when the [[#UNK900]] flag is not set, otherwise the URL is set directly using the input string. |
| + | |
| + | This was patched to use various string functionality and [[Sockets_services#nsd:u.2C_nsd:a|ResolveEx]] (only used if needed). sscanf is used twice with the following two format strings, with the input URL. If the first one returns <=1 and the second one returns <=0, the input URL is just copied to state, otherwise this continues with using ResolveEx etc. Format strings: |
| + | * "%15[^\n:]://%[^\n/?:]%[^\n]" |
| + | * "%[^\n/?:]%[^\n]" |
| + | |
| + | Afterwards, ResolveEx is used with the first output string from the latter sscanf as the input. Then the final URL is constructed with the output from ResolveEx. |
| | | |
| == PROXYAUTOCONFIG == | | == PROXYAUTOCONFIG == |
Line 51: |
Line 64: |
| | | |
| This controls the value of the [[SSL_services#OptionType|SkipDefaultVerify]] option flag. | | This controls the value of the [[SSL_services#OptionType|SkipDefaultVerify]] option flag. |
| + | |
| + | == UNK900 == |
| + | This option is handled as a bool. |
| + | |
| + | This is used during Curl_resolver_getaddrinfo. See also [[#URL]]. |