C# Class GeoIQ.Net.GeoComWebClient

Show file Open project: geobabbler/GeoIQ4Net Class Usage Examples

Public Properties

Property Type Description
Headers string>.Dictionary
WebReq System.Net.HttpWebRequest

Public Methods

Method Description
Delete ( string url, string userName, string password, string content ) : ResponseEventArgs
GeoComWebClient ( ) : System
GetCookie ( string url, string userName, string password ) : string
OnGeoComResponseReceived ( object geoComWebClient, ResponseEventArgs response ) : void
Post ( string url, string userName, string password, string contentType, string data ) : string

Executes an HTTP POST command and retrives the information. This function will automatically include a "source" parameter if the "Source" property is set.

Put ( string url, string data ) : ResponseEventArgs
PutAsync ( string url, string data ) : void
UploadFiles ( string url, string files ) : ResponseEventArgs
UploadFilesAsync ( string url, string files ) : void

Private Methods

Method Description
GetResponseBack ( IAsyncResult asynchronousResult ) : void
addHeaders ( ) : void
copyStream ( Stream input, Stream output ) : void
getByteArray ( Stream s ) : byte[]
getFilesMemoryStream ( string files, string boundary ) : Stream
getFilesMemoryStream ( Stream result, string files, string boundary ) : void
getOverlayDictionary ( ) : string>.Dictionary
getOverlayType ( string file ) : string
getWildHeaders ( string filename, string boundary ) : string
hasAuthenticationHeader ( ) : void

Method Details

Delete() public method

public Delete ( string url, string userName, string password, string content ) : ResponseEventArgs
url string
userName string
password string
content string
return ResponseEventArgs

GeoComWebClient() public method

public GeoComWebClient ( ) : System
return System

GetCookie() public method

public GetCookie ( string url, string userName, string password ) : string
url string
userName string
password string
return string

OnGeoComResponseReceived() public method

public OnGeoComResponseReceived ( object geoComWebClient, ResponseEventArgs response ) : void
geoComWebClient object
response ResponseEventArgs
return void

Post() public method

Executes an HTTP POST command and retrives the information. This function will automatically include a "source" parameter if the "Source" property is set.
public Post ( string url, string userName, string password, string contentType, string data ) : string
url string The URL to perform the POST operation
userName string The username to use with the request
password string The password to use with the request
contentType string
data string The data to post
return string

Put() public method

public Put ( string url, string data ) : ResponseEventArgs
url string
data string
return ResponseEventArgs

PutAsync() public method

public PutAsync ( string url, string data ) : void
url string
data string
return void

UploadFiles() public method

public UploadFiles ( string url, string files ) : ResponseEventArgs
url string
files string
return ResponseEventArgs

UploadFilesAsync() public method

public UploadFilesAsync ( string url, string files ) : void
url string
files string
return void

Property Details

Headers public property

public Dictionary Headers
return string>.Dictionary

WebReq public property

public HttpWebRequest,System.Net WebReq
return System.Net.HttpWebRequest