KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Blank username and password when sending a request with HTTP Request command
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: April 1, 2025

The 4D Web Server processes non-static HTTP requests using the database method On Web Connection.

Within this method, there are six text-input parameters ($1, $2, $3, $4, $5, and $6), each assigned to specific request data. Notably, the parameters $5 and $6 are designated for the username and password, respectively, which are received as part of the HTTP request.

In certain cases, when sending an HTTP request from another instance of 4D using the HTTP Request command, the username and password parameters may be left blank. If this occurs, ensure that the optional authMethod parameter in the HTTP AUTHENTICATE command is properly defined to match your authentication method.

When the authMethod parameter is correctly set, the username and password will be properly passed into their respective parameters ($5 and $6) in the On Web Connection database method.