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
Browser
The browser string of the request
public abstract string Browser { get; }
Property Value
BrowserIsIE
[Obsolete("Deprecated", false)]
public abstract bool BrowserIsIE { get; }
Property Value
BrowserIsMac
[Obsolete("Deprecated", false)]
public abstract bool BrowserIsMac { get; }
Property Value
BrowserIsMobile
true if the browser is a mobile device
public abstract bool BrowserIsMobile { get; }
Property Value
BrowserIsWindows
[Obsolete("Deprecated", false)]
public abstract bool BrowserIsWindows { get; }
Property Value
BrowserVersion
[Obsolete("Deprecated", false)]
public abstract string BrowserVersion { get; }
Property Value
ContentType
The content type of the request
public abstract string ContentType { get; }
Property Value
CookieString
Full cookie list from the browser. empty line seperates cookies. name=value pairs
public abstract string CookieString { get; }
Property Value
Form
Full key=value list for the form submitted
public abstract string Form { get; }
Property Value
FormAction
request verb
public abstract string FormAction { get; }
Property Value
HTTPAccept
The requested accept type
public abstract string HTTPAccept { get; }
Property Value
HTTPAcceptCharset
The requested accect character set
public abstract string HTTPAcceptCharset { get; }
Property Value
HTTPProfile
public abstract string HTTPProfile { get; }
Property Value
HTTPXWapProfile
public abstract string HTTPXWapProfile { get; }
Property Value
Host
The requested domain
public abstract string Host { get; }
Property Value
Language
The requested language
public abstract string Language { get; }
Property Value
Link
The requested link
public abstract string Link { get; }
Property Value
LinkForwardSource
public abstract string LinkForwardSource { get; }
Property Value
LinkSource
public abstract string LinkSource { get; }
Property Value
Page
the right-most segment of the url. The page for website urls
public abstract string Page { get; }
Property Value
Path
the url segment between the page and the domain
public abstract string Path { get; }
Property Value
PathPage
The path and page segments of the url
public abstract string PathPage { get; }
Property Value
Protocol
The request protocol (http, https, etc)
public abstract string Protocol { get; }
Property Value
QueryString
The request querystring (segment following the question mark)
public abstract string QueryString { get; }
Property Value
Referer
The refering url from the browser
public abstract string Referer { get; }
Property Value
RemoteIP
The IP of the request
public abstract string RemoteIP { get; }
Property Value
Secure
true if the request is https
public abstract bool Secure { get; }
Property Value
Methods
Cookie(string)
Cookie by name
public abstract string Cookie(string cookieName)
Parameters
cookieNamestring
Returns
GetBoolean(string)
return a value for a key=value pair
public abstract bool GetBoolean(string key)
Parameters
keystring
Returns
GetDate(string)
return a value for a key=value pair
public abstract DateTime GetDate(string key)
Parameters
keystring
Returns
GetInteger(string)
return a value for a key=value pair
public abstract int GetInteger(string key)
Parameters
keystring
Returns
GetNumber(string)
return a value for a key=value pair
public abstract double GetNumber(string key)
Parameters
keystring
Returns
GetText(string)
return a value for a key=value pair
public abstract string GetText(string key)
Parameters
keystring
Returns
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
keystring
Returns
OK(string)
public abstract bool OK(string RequestName)
Parameters
RequestNamestring