ApiClientGet(String, Stream, String, String, ApiClientInProgressEventHandler, Int32, String) Method

Performs a GET HTTP request using HttpWebRequest to the specified URL.

Definition

Namespace: SMath.Manager.Network
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.2.9018.0
C#
public static HttpStatusCode Get(
	string url,
	Stream responseStream,
	string authorizationValue,
	string accept,
	ApiClientInProgressEventHandler progress,
	int maxTimeout,
	string userAgent
)

Parameters

url  String
Url to perform request to.
responseStream  Stream
Stream the response from server is written to.
authorizationValue  String
JWT authorization token. Unathenticated request is performed if parameter is empty.
accept  String
MIME type of the accepted response from server.
progress  ApiClientInProgressEventHandler
Delegate raised on download progress changed.
maxTimeout  Int32
Maximum request timeout to wait for.
userAgent  String
User agent string.

Return Value

HttpStatusCode

Return Value

HttpStatusCode
HttpStatusCode of the response.

See Also