WebMethod.Post (“POST”) is an enumeration that specifies the POST method for HTTP. It is a member of the WebMethod.Type that specifies an HTTP method.
Examples
When you use WebMethod.Post, you’re telling the system to send data to a server to create a new resource. Unlike the GET method, which retrieves data, POST submits data to be processed.
Use the POST method when you want to:
- Create a new record in a database
- Upload a file
- Submit a form
Let’s say you’re creating a new user profile. The code would look something like this:
WebAction.Request(
WebMethod.Post,
"https://api.example.com/users"
)
In this case, the POST request is sent to “https://api.example.com/users“, signalling the intent to add a new user to the list of users at that URL.
By specifying the POST method, you let the server know that you wish to add or submit new information to the specified resource.
These enumerations only work in the context of custom connectors.
Related enumerations
Other related enumerations are:
Applies to
Here’s a list of functions that work with WebMethod.Type:
2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy