| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| External commands | YES | NO | NO | All |
Note: The flag is set according to whether Omnis was able to make a call to this external command.
This Web command is multi-threaded,allowing another thread to execute in the multi-threaded server while it runs. Note that the same socket cannot safely be used concurrently by more than one thread.
HTTPSetAuthentication is a client command that provides the parameters needed to authenticate an HTTP request with the server.Currently, the command only supports HTTP basic authentication, or no authentication. If you use basic authentication, you are recommended to use a secure connection. Use this command to set up authentication after calling HTTPOpen and before calling HTTPMethod. Note that if you do not want to authenticate the request, a new socket created with HTTPOpen defaults to no authentication, so you do not need to call HTTPSetAuthentication in this case.
Socket is a long integer field containing the socket number of an open HTTP connection.
Type is a long integer with value zero for no authentication, or 1 for basic authentication.
Username is a character field containing the user name for basic authentication.
Password is a character field containing the password for basic authentication.
Status is an Omnis Long Integer field which receives the value zero for success, or an error code < 0 for failure. Possible error codes are listed in the Web Command Error Codes Appendix.