Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4    Statistic    FMM    Blog  

CURL.SetOptionDisallowUserNameInURL

Disallow specifying username/login in URL.

Component Version macOS Windows Linux Server iOS SDK
CURL 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionDisallowUserNameInURL"; curl; Value )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value The option value.
Can be 1 to disable or 0 to enable.
1

Result

Returns OK or error.

Description

Disallow specifying username/login in URL.
The value 1 tells the library to not allow URLs that include an username.

Having password and username in the URL is a bad idea as you tell every proxy server your secret and the URLs appear on all proxy and the final web server right in the log files.

See also DISALLOW_USERNAME_IN_URL option in CURL manual.

Examples

Enable passwords in the URL:

MBS( "CURL.SetOptionDisallowUserNameInURL"; $curl; 1 )

Release notes

Blog Entries

Created 11st July 2018, last changed 5th October 2018


CURL.SetOptionDirListOnly - CURL.SetOptionEGDSocket

Feedback: Report problem or ask question.


Start Chat