post()
Last updated 1/10/2024
The
post()
is a function used on the HTTPClient
object that will send data to the server as a POST
request and will return either a HTTP response, or a headless browser
page which can be interacted with. If no mode is supplied, the default is RAW.
Available
Server
Function Signature
post([mode: string,] url: string) : HTTPResponse | BrowserPage;
Parameter | Type | Description |
---|---|---|
mode | string | Optional mode type |
url | string | The URL string |
Return Value
- Returns HTTPResponseobject for RAW mode.
- Returns BrowserPageobject for BROWSER mode.