Skip to content

83386e0d b912 f16f daaa 2c4b8c7ccb4a

Mat Walker edited this page Apr 17, 2020 · 1 revision

HTTPBased.Http Method (HTTPBased.HTTPMethods, String, String, String, String, String, Boolean)

[This is preliminary documentation and is subject to change.]

Sends an HTTP Request with the given request method and parameters

Namespace: TeamControlium.NonGUI
Assembly: TeamControlium.NonGUI (in TeamControlium.NonGUI.dll) Version: 2.0.0

Syntax

C#

public HTTPBased.ItemList Http(
	HTTPBased.HTTPMethods method,
	string domain,
	string resourcePath,
	string query,
	string header,
	string body,
	bool setContentLength = true
)

Parameters

 

method
Type: TeamControlium.NonGUI.HTTPBased.HTTPMethods
Required method. See HTTPBased.HTTPMethods
domain
Type: System.String
Domain to send required to
resourcePath
Type: System.String
Resource path
query
Type: System.String
Query-string to use
header
Type: System.String
HTTP Header part of request
body
Type: System.String
HTTP Body part of request
setContentLength (Optional)
Type: System.Boolean
Optional parameter (default true) - Indicates if HTTP Content-Length header item should automatically be added/updated or not

Return Value

Type: HTTPBased.ItemList
Response returned from request

Remarks

If there is a timeout an Exception will be logged and thrown.
If the header Connection: keep-alive is used this WILL currently result in a timeout.
The Header item 'Content-Length' will automatically be added (or updated with actual Body length if set already)

See Also

Reference

HTTPBased Class
Http Overload
TeamControlium.NonGUI Namespace

Clone this wiki locally