Click or drag to resize

HelpersGetHttpResponseMessage Method (String, HttpMethod, String, String, HttpContent)

Gets the HTTP response from an HTTP request call with content in basic authentication (Username and password).

Namespace:  WorkflowGen.My.Web
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 8.0.6.0 (8.0.6.20210916)
Syntax
public static HttpResponseMessage GetHttpResponseMessage(
	string apiUri,
	HttpMethod httpMethod,
	string username,
	string password,
	HttpContent httpContent = null
)

Parameters

apiUri
Type: SystemString
Uri of the API
httpMethod
Type: System.Net.HttpHttpMethod
Type of the HTTP request
username
Type: SystemString
Username of the account to authenticate
password
Type: SystemString
Password of the account to authenticate
httpContent (Optional)
Type: System.Net.HttpHttpContent
Content of the HTTP request

Return Value

Type: HttpResponseMessage
See Also