To check whether a function can be executed properly or not, you can send an HTTP request to that function using a browser, the cURL, or the console. To trigger the execution of a function, you must send an HTTP request to the following address:
In the preceding step, anonymous authentication is selected when a trigger is created. This is a simple, but not extremely secure, authentication mode, as anyone can send an HTTP request to call your functions. Therefore, we recommend that you use the function authentication mode that requires Authorization and Date information be included in an HTTP request. For more information, see HTTP triggers.
Select a function. On the displayed page, click the Code tab and scroll down the page until the Params tab is displayed.
Click the Params tab and enter the key-value pairs. The key-value pairs are automatically added to the HTTP URL.
Click the Header tab and enter the key-value pairs for the request header.
If you send an HTTP request using the browser, the execution result is as follows:
After the preceding steps are completed, a web server is built based on an HTTP trigger. You can then code to process the HTTP request.