OpenPetra
Free Administration Software for Non-Profits
Ict.Common.IO.THTTPUtils Class Reference

a few simple functions to access content from the web More...

Static Public Member Functions

static void ResetStaticVariables ()
 reset the static variables for each Web Request call. More...
 
static void ResetSession ()
 Throws away the previous client session cookies! More...
 
static string ReadWebsite (string url)
 read from a website; More...
 
static string PostRequest (string url, NameValueCollection parameters)
 post a request to a website. used for Connectors More...
 
static Boolean DownloadFile (string url, string filename)
 download a patch or other file from a website; used for patching the program More...
 

Static Public Attributes

const String SESSION_ALREADY_CLOSED = "SESSION_ALREADY_CLOSED"
 this message is transfered via 404 code to the client More...
 
static Cookie OverallCookie = null
 Storage of the single cookie that stores the Session ID. More...
 

Detailed Description

a few simple functions to access content from the web

Member Function Documentation

◆ DownloadFile()

static Boolean Ict.Common.IO.THTTPUtils.DownloadFile ( string  url,
string  filename 
)
inlinestatic

download a patch or other file from a website; used for patching the program

Parameters
url
filename
Returns

◆ PostRequest()

static string Ict.Common.IO.THTTPUtils.PostRequest ( string  url,
NameValueCollection  parameters 
)
inlinestatic

post a request to a website. used for Connectors

◆ ReadWebsite()

static string Ict.Common.IO.THTTPUtils.ReadWebsite ( string  url)
inlinestatic

read from a website;

◆ ResetSession()

static void Ict.Common.IO.THTTPUtils.ResetSession ( )
inlinestatic

Throws away the previous client session cookies!

◆ ResetStaticVariables()

static void Ict.Common.IO.THTTPUtils.ResetStaticVariables ( )
inlinestatic

reset the static variables for each Web Request call.

Member Data Documentation

◆ OverallCookie

Cookie Ict.Common.IO.THTTPUtils.OverallCookie = null
static

Storage of the single cookie that stores the Session ID.

Set in StoreSessionCookie if we don't have a session cookie yet, and set to null only in ResetSession. Other than that this static Field is only read!

◆ SESSION_ALREADY_CLOSED

const String Ict.Common.IO.THTTPUtils.SESSION_ALREADY_CLOSED = "SESSION_ALREADY_CLOSED"
static

this message is transfered via 404 code to the client


The documentation for this class was generated from the following file: