Table of Contents

Class WebClientHelper

Namespace
SunamoHttp
Assembly
SunamoHttp.dll

Helper class for WebClient operations

public class WebClientHelper
Inheritance
WebClientHelper
Inherited Members
Extension Methods

Methods

GetResponseBytes(string)

Gets the response bytes from the specified address

public static byte[] GetResponseBytes(string address)

Parameters

address string

The URL address

Returns

byte[]

The response as byte array

GetResponseStream(string)

Gets the response stream from the specified address

public static Stream GetResponseStream(string address)

Parameters

address string

The URL address

Returns

Stream

The response stream

GetResponseText(string, HttpRequestData?)

Gets the response text from the specified address

public static string GetResponseText(string address, HttpRequestData? httpRequestData)

Parameters

address string

The URL address

httpRequestData HttpRequestData

The HTTP request configuration data

Returns

string

The response text with spaces normalized