-
Notifications
You must be signed in to change notification settings - Fork 0
21b03e0b 49e0 1f4c a9b9 45842d088e53
Mat Walker edited this page Apr 17, 2020
·
1 revision
[This is preliminary documentation and is subject to change.]
Sends an HTTP Request with the given request method and set properties then returns response.
Namespace: TeamControlium.NonGUI
Assembly: TeamControlium.NonGUI (in TeamControlium.NonGUI.dll) Version: 2.0.0
C#
public bool TryHttp(
HTTPBased.HTTPMethods method,
out HTTPBased.ItemList response,
bool setContentLength = true
)
- method
- Type: TeamControlium.NonGUI.HTTPBased.HTTPMethods
Required method. See HTTPBased.HTTPMethods - response
- Type: TeamControlium.NonGUI.HTTPBased.ItemList
If successful, Response returned from request otherwise null. - setContentLength (Optional)
- Type: System.Boolean
Optional parameter (default true) - Indicates if HTTP Content-Length header item should automatically be added/updated or not
Type: Boolean
True if successful, otherwise false. If false, TryException contains exception thrown
If there is a timeout an Exception will be logged and false returned.
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)
HTTPBased Class
TryHttp Overload
TeamControlium.NonGUI Namespace
- TeamControlium Namespace
-
TeamControlium.NonGUI Namespace
-
HTTPBased Class
- HTTPBased Constructor
-
HTTPBased Properties
- HTTPBased.Body Property
- HTTPBased.CertificateValidationCallback Property
- HTTPBased.ClientCertificate Property
- HTTPBased.Domain Property
- HTTPBased.HeaderList Property
- HTTPBased.HeaderString Property
- HTTPBased.HTTPMethod Property
- HTTPBased.QueryList Property
- HTTPBased.QueryString Property
- HTTPBased.ResourcePath Property
- HTTPBased.ResponseRaw Property
- HTTPBased.TryException Property
- HTTPBased.UseSSL Property
- HTTPBased Methods
- HTTPBased.HTTPMethods Enumeration
- HTTPBased.ItemList Class
- TCPBased Class
-
HTTPBased Class