C# Class ModServer.HttpBrowserEntitiy

Mostra file Open project: tyandjel94/RowanParkingPassApp Class Usage Examples

Public Methods

Method Description
HttpBrowserEntitiy ( bool insecure = false ) : System
openConnection ( string address, PORTS port ) : HttpConnection
openConnection ( string address, int port ) : HttpConnection
openSecureConnection ( string address, PORTS port, string servername ) : HttpConnection
openSecureConnection ( string address, int port, string servername ) : HttpConnection
openURL ( string url, int port ) : HttpConnection
processResponse ( HttpResponse r ) : void
splitURL ( string URL ) : string[]

Index 0 will be (http://)(www).domain.controller index 1 will be /path

Private Methods

Method Description
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

http://msdn.microsoft.com/en-us/library/system.net.security.sslstream%28v=vs.110%29.aspx

ValidateServerCertificate_insecure ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Method Details

HttpBrowserEntitiy() public method

public HttpBrowserEntitiy ( bool insecure = false ) : System
insecure bool
return System

openConnection() public method

public openConnection ( string address, PORTS port ) : HttpConnection
address string
port PORTS
return HttpConnection

openConnection() public method

public openConnection ( string address, int port ) : HttpConnection
address string
port int
return HttpConnection

openSecureConnection() public method

public openSecureConnection ( string address, PORTS port, string servername ) : HttpConnection
address string
port PORTS
servername string
return HttpConnection

openSecureConnection() public method

public openSecureConnection ( string address, int port, string servername ) : HttpConnection
address string
port int
servername string
return HttpConnection

openURL() public method

public openURL ( string url, int port ) : HttpConnection
url string
port int
return HttpConnection

processResponse() public method

public processResponse ( HttpResponse r ) : void
r HttpResponse
return void

splitURL() public static method

Index 0 will be (http://)(www).domain.controller index 1 will be /path
public static splitURL ( string URL ) : string[]
URL string
return string[]