Table of Contents

Class CPRequestBaseClass

Namespace
Contensive.BaseClasses
Assembly
CPBase.dll

Properties of optional http request

public abstract class CPRequestBaseClass
Inheritance
CPRequestBaseClass
Inherited Members

Properties

Body

The body of the entire request entity. Use when iis does not parse the body into form elements, such as application/json

public abstract string Body { get; }

Property Value

string

Browser

The browser string of the request

public abstract string Browser { get; }

Property Value

string

BrowserIsIE

[Obsolete("Deprecated", false)]
public abstract bool BrowserIsIE { get; }

Property Value

bool

BrowserIsMac

[Obsolete("Deprecated", false)]
public abstract bool BrowserIsMac { get; }

Property Value

bool

BrowserIsMobile

true if the browser is a mobile device

public abstract bool BrowserIsMobile { get; }

Property Value

bool

BrowserIsWindows

[Obsolete("Deprecated", false)]
public abstract bool BrowserIsWindows { get; }

Property Value

bool

BrowserVersion

[Obsolete("Deprecated", false)]
public abstract string BrowserVersion { get; }

Property Value

string

ContentType

The content type of the request

public abstract string ContentType { get; }

Property Value

string

CookieString

Full cookie list from the browser. empty line seperates cookies. name=value pairs

public abstract string CookieString { get; }

Property Value

string

Form

Full key=value list for the form submitted

public abstract string Form { get; }

Property Value

string

FormAction

request verb

public abstract string FormAction { get; }

Property Value

string

HTTPAccept

The requested accept type

public abstract string HTTPAccept { get; }

Property Value

string

HTTPAcceptCharset

The requested accect character set

public abstract string HTTPAcceptCharset { get; }

Property Value

string

HTTPProfile

public abstract string HTTPProfile { get; }

Property Value

string

HTTPXWapProfile

public abstract string HTTPXWapProfile { get; }

Property Value

string

Host

The requested domain

public abstract string Host { get; }

Property Value

string

Language

The requested language

public abstract string Language { get; }

Property Value

string

The requested link

public abstract string Link { get; }

Property Value

string

LinkForwardSource

public abstract string LinkForwardSource { get; }

Property Value

string

LinkSource

public abstract string LinkSource { get; }

Property Value

string

Page

the right-most segment of the url. The page for website urls

public abstract string Page { get; }

Property Value

string

Path

the url segment between the page and the domain

public abstract string Path { get; }

Property Value

string

PathPage

The path and page segments of the url

public abstract string PathPage { get; }

Property Value

string

Protocol

The request protocol (http, https, etc)

public abstract string Protocol { get; }

Property Value

string

QueryString

The request querystring (segment following the question mark)

public abstract string QueryString { get; }

Property Value

string

Referer

The refering url from the browser

public abstract string Referer { get; }

Property Value

string

RemoteIP

The IP of the request

public abstract string RemoteIP { get; }

Property Value

string

Secure

true if the request is https

public abstract bool Secure { get; }

Property Value

bool

Methods

Cookie by name

public abstract string Cookie(string cookieName)

Parameters

cookieName string

Returns

string

GetBoolean(string)

return a value for a key=value pair

public abstract bool GetBoolean(string key)

Parameters

key string

Returns

bool

GetDate(string)

return a value for a key=value pair

public abstract DateTime GetDate(string key)

Parameters

key string

Returns

DateTime

GetInteger(string)

return a value for a key=value pair

public abstract int GetInteger(string key)

Parameters

key string

Returns

int

GetNumber(string)

return a value for a key=value pair

public abstract double GetNumber(string key)

Parameters

key string

Returns

double

GetText(string)

return a value for a key=value pair

public abstract string GetText(string key)

Parameters

key string

Returns

string

GetTextSafe(string)

return a value for a key=value pair. use only for input that expects text but a user might enter html. This method will return the text with html removed. If the input is expected to be html, use GetText() instead.

public abstract string GetTextSafe(string key)

Parameters

key string

Returns

string

OK(string)

public abstract bool OK(string RequestName)

Parameters

RequestName string

Returns

bool