Response MethodsC# API
The Response type exposes the following members.
Methods

  NameDescription
Public methodContainsHeader
Determines whether this Response contains a particular HTTP response header.
Public methodDispose
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExtract(List String , String)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(String, String)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(List String , String, ActionType)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, and specifying what action to take in case of failure.
Public methodExtract(List String , String, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(List String , String, String)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning the defaultValue if they cannot be found.
Public methodExtract(String, String, ActionType)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying what action to take in case of failure.
Public methodExtract(String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(String, String, String)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning the defaultValue if they cannot be found.
Public methodExtract(ExtractionCursor, List String , String)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(ExtractionCursor, String, String)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(List String , String, ActionType, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodExtract(List String , String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning the defaultValue if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(String, String, ActionType, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, specifying whether the search will be case-sensitive, and specifying what action to take in case of failure.
Public methodExtract(String, String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning the defaultValue if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, List String , String, ActionType)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, and specifying what action to take in case of failure.
Public methodExtract(ExtractionCursor, List String , String, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, List String , String, String)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning the defaultValue if they cannot be found.
Public methodExtract(ExtractionCursor, String, String, ActionType)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying what action to take in case of failure.
Public methodExtract(ExtractionCursor, String, String, SearchFlags)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found.
Public methodExtract(ExtractionCursor, String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, String, String, String)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning the defaultValue if they cannot be found.
Public methodExtract(ExtractionCursor, List String , String, ActionType, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning an empty string if they cannot be found, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodExtract(ExtractionCursor, List String , String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified list of before and after string objects - returning the defaultValue if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, String, String, ActionType, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, specifying whether the search will be case-sensitive, and specifying what action to take in case of failure.
Public methodExtract(ExtractionCursor, String, String, SearchFlags, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtract(ExtractionCursor, String, String, String, Boolean)
Extracts text from the response content - everything between (but not including) the specified before and after string objects - returning the defaultValue if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtractForm(Int32)
Extracts the nth HTML Form from the response content.
Public methodExtractForm(String)
Extracts an HTML Form with the specified formName from the response content.
Public methodExtractForm(Int32, ActionType)
Extracts the nth HTML Form from the response content, and take the specified failAction if no matching form can be found.
Public methodExtractForm(String, ActionType)
Extracts an HTML Form with the specified formName from the response content, and take the specified failAction if no matching form can be found.
Public methodExtractForms
Extracts all the HTML Form objects from the response content.
Public methodExtractFromEnd(List String , String)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(String, String)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, ActionType)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, String)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(String, String, ActionType)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, String)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, ActionType, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, String, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(String, String, ActionType, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, String, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, ActionType)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, String)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, ActionType)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, String)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned. If either value cannot be found, the defaultValue will be returned.
Public methodExtractFromEnd(List String , String, ActionType, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(List String , String, String, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(String, String, ActionType, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(String, String, String, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, ActionType, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, String, Boolean)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, ActionType, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, String, Boolean)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned. If either value cannot be found, the defaultValue will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, ActionType, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, List String , String, String, Boolean, SearchFlags)
Extracts text from the response content starting from the end. Everything between (but not including) the specified list of after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, ActionType, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned.
Public methodExtractFromEnd(ExtractionCursor, String, String, String, Boolean, SearchFlags)
Extracts text from the response content, starting from the end. Everything between (but not including) the specified after and before string objects will be returned. If either value cannot be found, the defaultValue will be returned.
Public methodExtractList(String, String)
Extracts a list of items from this Response.
Public methodExtractList(String, String, Boolean)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive.
Public methodExtractList(ExtractionCursor, String, String)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(String, String, Boolean, Int32)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(ExtractionCursor, String, String, SearchFlags)
Extracts a list of items from this Response.
Public methodExtractList(ExtractionCursor, String, String, String)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(ExtractionCursor, String, String, SearchFlags, String)
Extracts a list of items from this Response.
Public methodExtractList(ExtractionCursor, String, String, String, Boolean)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(ExtractionCursor, String, String, SearchFlags, String, Boolean)
Extracts a list of items from this Response.
Public methodExtractList(ExtractionCursor, String, String, String, Boolean, Int32)
Extracts a list of items from this Response, specifying whether the search should be case-sensitive, and the maximum number of items to extract.
Public methodExtractList(ExtractionCursor, String, String, SearchFlags, String, Boolean, Int32)
Extracts a list of items from this Response.
Public methodExtractRegExp(ExtractionCursor, String)
Extracts multiple string objects from the response content, wherever the specified regular expression matches.
Public methodExtractRegExp(ExtractionCursor, String, Boolean)
Extracts multiple string objects from the response content, wherever the specified regular expression matches, and specifying whether the search will be case-sensitive.
Public methodExtractRegExp(ExtractionCursor, String, String, SearchFlags)
Extracts text from the response content - everything between (but not including) the specified beforeRegExp and afterRegExp string objects - returning an empty string if they cannot be found.
Public methodExtractRegExp(ExtractionCursor, String, String, SearchFlags, Boolean)
Extracts text from the response content - everything between (but not including) the specified beforeRegExp and afterRegExp string objects - returning an empty string if they cannot be found, and specifying whether the search will be case-sensitive.
Public methodExtractXPath
Returns a string object from the HTML or XML response content that matches the given XPath expression.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind(ExtractionCursor, String)
Finds the specified text within this Response.
Public methodFind(ExtractionCursor, String, ActionType)
Finds the specified text within this Response, specifying what action to take in case of failure.
Public methodFind(ExtractionCursor, String, Boolean)
Finds the specified text within this Response, specifying whether the search will be case-sensitive.
Public methodFind(ExtractionCursor, String, ActionType, Boolean)
Finds the specified text within this Response, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodGetAnchor
Gets the nth anchor in this Response.
Public methodStatic membergetCPtr
For internal use only. Of no interest to the user.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHeaderValue(String)
Gets the value of an HTTP response header contained in this Response.
Public methodGetHeaderValue(String, Int32)
Gets the value of the nth instance of an HTTP response header contained in this Response.
Public methodGetRedirectedFrom
Gets the Response from which this Response has been redirected.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResetCharEncoding
Resets the character encoding that is used to decode the data contained in this Response. This will force the character encoding to be re-calculated, using the methods described in SetCharEncoding(String).
Public methodRfind(ExtractionCursor, String)
Finds the specified text within this Response, starting from the end of the content.
Public methodRfind(ExtractionCursor, String, ActionType)
Finds the specified text within this Response, starting from the end of the content, specifying what action to take in case of failure.
Public methodRfind(ExtractionCursor, String, Boolean)
Finds the specified text within this Response, starting from the end of the content, and specifying whether the search will be case-sensitive.
Public methodRfind(ExtractionCursor, String, ActionType, Boolean)
Finds the specified text within this Response, starting from the end of the content, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodSetCharEncoding
Sets the character encoding that is used to decode the data contained in this Response.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerifyContains(String)
Determines whether the content of this Response contains the specified text.
Public methodVerifyContains(String, ActionType)
Determines whether the content of this Response contains the specified text, specifying what action to take in case of failure.
Public methodVerifyContains(String, Boolean)
Determines whether the content of this Response contains the specified text, specifying whether the search will be case-sensitive.
Public methodVerifyContains(String, ActionType, Boolean)
Determines whether the content of this Response contains the specified text, specifying whether the search will be case-sensitive, and what action to take in case of failure.
Public methodVerifyResult(HttpStatus)
Verify that the response code of this Response matches the specifed expectedResult
Public methodVerifyResult(HttpStatus, ActionType)
Verify that the response code of this Response matches the specifed expectedResult, and takes the specified action if it does not.
Public methodVerifyTitle(String)
Verifies that the title of this Response page matches the specified title.
Public methodVerifyTitle(String, ActionType)
Verifies that the title of this Response page matches the specified title, and takes the specified action if it does not.
Back to Top
See Also