-
Notifications
You must be signed in to change notification settings - Fork 0
ff82a110 5312 edf1 cdd2 0225d3f690e8
[This is preliminary documentation and is subject to change.]
Performs an HTTP GET to the required Domain/ResourcePath containing given HTTP Query-string Header and Body (if given)
Namespace: TeamControlium.NonGUI
Assembly: TeamControlium.NonGUI (in TeamControlium.NonGUI.dll) Version: 2.0.0
C#
public HTTPBased.ItemList HttpGET(
string domain,
string resourcePath,
string query,
string header,
string body = null
)
- domain
- Type: System.String
Domain to POST to. IE.postman-echo.com ```</dd><dt>resourcePath</dt><dd>Type: <a href="https://docs.microsoft.com/dotnet/api/system.string" target="_blank">System.String</a><br />Resource path at domain. IE.
/get
foo1=bar1&foo2=bar2
#### Return Value Type: <a href="7d03ba9a-865f-5f56-6af4-b72569bae49a">HTTPBased.ItemList</a><br />Processed HTTP Response ## Remarks Content-Length header item is automatically added (or, if exists in given header, modified) during building of Request. If Connection keep-alive is used, currently request will time-out on waiting for response. Intelligent and async functionality needs building in. Aspects of request (such as port, header/request layout etc.) can be modified using settings stored in Repository. See <a href="72120597-6fa2-1437-26de-f3477e705880">HTTPBased</a> and documentation for details of Repository items referenced. <br /> Processed HTTP Response is passed back as a collection of Name/Value pairs. The following raw HTTP response is converted;
HTTP/1.1 200 OK Cache-Control: private, max-age=0 Content-Length: 240 Content-Type: application/json; charset=utf-8 Server: nginx ETag: W/"f0-EYtfNu+sVmscSzVVghi5p8EfJsA" Vary: Accept-Encoding Access-Control-Allow-Methods: GET, POST Access-Control-Allow-Headers: content-type Access-Control-Allow-Credentials: true Strict-Transport-Security: max-age=31536000 Date: Thu, 16 Apr 2020 01:08:29 GMT Connection: close { "args":{ "foo1":"bar1", "foo2":"bar2" }, "headers":{ "x-forwarded-proto":"https", "host":"postman-echo.com", "accept-encoding":"identity", "content-type":"text/xml", "x-forwarded-port":"80" }, "url":"https://postman-echo.com/get?foo1=bar1&foo2=bar2" }
Most items are self-explanatory - See <a href="c8d3a3d5-b43f-84c9-03d3-8b0d6ab60f11">HttpPOST(String, String, String, String, String)</a> for details. Note. HTTP Content-Length header item in request will automatically be added (or updated if already in header) ## See Also #### Reference <a href="72120597-6fa2-1437-26de-f3477e705880">HTTPBased Class</a><br /><a href="b986b6b3-cf11-d15e-34e8-e0249ff158c0">HttpGET Overload</a><br /><a href="7c8197c9-2a4b-3073-068f-4bdf12fc0e2c">TeamControlium.NonGUI Namespace</a><br />
- 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