| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
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
- Version 8.3
Blog Entries
Created 11st July 2018, last changed 5th October 2018