HTTPServer

4D Component which includes methods to help your web developing.

OnWebConnection()

OnWebConnection (webServer; remoteIP; hostIP)

Name Type   Description  
webServer object Web Server object  
remoteIP text Remote IP address  
hostIP text Host IP address  

This method is used to handle web request.

Just call this method in your On Web Connection database method.

Pass Web Server object returned by 4D’s Web Server command to the first parameter. It tells the component which web server configuration should be loaded.

Then pass $3 (remoteIP) and $4 (hostIP) parameter of the On Web Connection database method to the second and the third parameter.

Example

// On Web Connection database method
C_TEXT($1; $2; $3; $4; $5; $6)
OnWebConnection(Web Server; $3; $4)