Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  


Disallow specifying username/login in URL.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 8.3 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionDisallowUserNameInURL"; Handle; Value )


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


Returns OK or error.


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.


Enable passwords in the URL:

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

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

CURL.SetOptionDirListOnly   -   CURL.SetOptionEGDSocket

Feedback: Report problem or ask question.

MBS FileMaker blog