HttpRequest class
Revision as of 05:52, 2 July 2020 by Administrator (talk | contribs)
HttpRequest
Object to make requests to sites
Parent class
Inherits from object
Constructors
- (string uri "The uri to visit.") - Visit a uri
- (string uri "The uri to visit.", WebResponse takeCookiesFrom "If you made a previous request and want to transfer the cookies from that response, give the response object here.") - Visit a uri with cookies
Methods
- WebResponse GetResponse() - Actually do the request, and get the response back
- WebResponse GetResponse(string body "A body to include in the request - Always UTF-8 encoded") - Actually do the request, and get the response back
- Empty SetIgnoreCertificatesErrors() - Ignore any ssl/tls errors due to certificate validation
- (From object) string ToString() - The string representation of the object.
Properties
- string ContentType { get; set; } - Get/Set the ContentType
- Dictionary Headers { set; } - Apply headers to the request
- string Method { get; set; } - Choose which HTTP method to request with
- string ObjectTypeName { get; } - The name of the type of object.
- int Timeout { get; set; } - Get/Set the timeout (in millisec)
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.