C# Class GeoIQ.Net.GeoComWebClient

Afficher le fichier Open project: geobabbler/GeoIQ4Net Class Usage Examples

Méthodes publiques

Свойство Type Description
Headers string>.Dictionary
WebReq System.Net.HttpWebRequest

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Delete ( string url, string userName, string password, string content ) : ResponseEventArgs
url string
userName string
password string
content string
Résultat ResponseEventArgs

GeoComWebClient() public méthode

public GeoComWebClient ( ) : System
Résultat System

GetCookie() public méthode

public GetCookie ( string url, string userName, string password ) : string
url string
userName string
password string
Résultat string

OnGeoComResponseReceived() public méthode

public OnGeoComResponseReceived ( object geoComWebClient, ResponseEventArgs response ) : void
geoComWebClient object
response ResponseEventArgs
Résultat void

Post() public méthode

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
Résultat string

Put() public méthode

public Put ( string url, string data ) : ResponseEventArgs
url string
data string
Résultat ResponseEventArgs

PutAsync() public méthode

public PutAsync ( string url, string data ) : void
url string
data string
Résultat void

UploadFiles() public méthode

public UploadFiles ( string url, string files ) : ResponseEventArgs
url string
files string
Résultat ResponseEventArgs

UploadFilesAsync() public méthode

public UploadFilesAsync ( string url, string files ) : void
url string
files string
Résultat void

Property Details

Headers public_oe property

public Dictionary Headers
Résultat string>.Dictionary

WebReq public_oe property

public HttpWebRequest,System.Net WebReq
Résultat System.Net.HttpWebRequest