# HTTP server AT commands Source: [https://docs.qualcomm.com/doc/80-Y8730-7/topic/http_server_at_commands.html](https://docs.qualcomm.com/doc/80-Y8730-7/topic/http_server_at_commands.html) Table : HTTP server AT commands | Command | Description | | --- | --- | | [AT+WEBSERVER](http_server_at_commands.html#at_webserver) | Start or stop the web server | | [AT+WEBSERVERCFG](http_server_at_commands.html#at_webservercfg) | Set or query the web server scheme and TLS certificate files | ## AT+WEBSERVER Source: [https://docs.qualcomm.com/doc/80-Y8730-7/topic/http_server_at_commands.html](https://docs.qualcomm.com/doc/80-Y8730-7/topic/http_server_at_commands.html) This command starts or stops the web server. ### Operation type Query/Set/Execution ### Syntax | Command | Response | | --- | --- | | AT+WEBSERVER | +WEBSERVER: use AT+WEBSERVER=<enable>,<server\_port>



OK | | AT+WEBSERVER? | +WEBSERVER: <state>,<scheme>,<server\_port>



OK | | AT+WEBSERVER=<enable>,<server\_port> | OK | ### Defined values - ``: Enable or disable the web server. - `0`: Disable - `1`: Enable - ``: Web server port number. Range: [1, 65535]. Required when <enable>=1 - ``: (Query response only) Current server state - `0`: Stopped - `1`: Running - ``: (Query response only) Active prototol scheme - `0`: HTTP - `1`: HTTPS Note: - Before starting the server in HTTPS mode, you must configure the certificate and key file paths using `AT+WEBSERVERCFG`. - To switch between HTTP and HTTPS, stop the server first (`AT+WEBSERVER=0`), reconfigure with `AT+WEBSERVERCFG`, then start again. - If the server is already running, issuing `AT+WEBSERVER=1` again returns ERROR. Stop the server first. ## AT+WEBSERVERCFG Source: [https://docs.qualcomm.com/doc/80-Y8730-7/topic/http_server_at_commands.html](https://docs.qualcomm.com/doc/80-Y8730-7/topic/http_server_at_commands.html) This command sets or queries the web server scheme and TLS certificate file paths. ### Operation type Query/Set/Execution ### Syntax | Command | Response | | --- | --- | | AT+WEBSERVERCFG | +WEBSERVERCFG: <scheme><”cert\_file”>,<”key\_file”>



OK | | AT+WEBSERVERCFG? | +WEBSERVERCFG: <scheme><”cert\_file”>,<”key\_file”>



OK | | AT+WEBSERVERCFG=<scheme>[,<"cert\_file">,<"key\_file">] | OK | ### Defined values - ``: Web server protocol scheme. - `0`: HTTP (no TLS). `<"cert_file">` and `<"key_file">` aren't required. - `1`: HTTPS (TLS with server authentication). `<"cert_file">` and `<"key_file">` are required. - `<"cert_file">`: File path of the server certificate (PEM format). This is a string parameter and should be enclosed with quotes. Required when `=1`. - ``: File path of the server private key (PEM format). This is a string parameter and should be enclosed with quotes. Required when <scheme>=1. ### Examples AT+WEBSERVERCFG=0 OKCopy to clipboard AT+WEBSERVERCFG=1,"/lfs/server.crt","/lfs/server.key" OKCopy to clipboard AT+WEBSERVERCFG? +WEBSERVERCFG: 1,"/lfs/server.crt","/lfs/server.key" OKCopy to clipboard Note: For details about how to generate a binary file from certificates and program it to flash, see [Download and program certificates](https://docs.qualcomm.com/doc/80-Y8730-7/topic/download_and_flash_certificates.html). Last Published: Jul 30, 2026 [Previous Topic HTTP client AT commands](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-7/topics/http_client_at_commands.md) [Next Topic OTA AT commands](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-7/topics/ota_at_commands.md)