|
The HttpRequest component provides the request data to be sent to the server with the POST or GET methods. This component only prepares the HTTP request data. It does not send it over the HTTP protocol.
HttpRequest is an independent stand-alone component. So it is possible to use it with any other http client engines / components for composing Web HTTP requests formatted according to RFC standards: RFC 1867, RFC 1521
Please see the Demos code (FormPost, SubmitFile) and also the indexed Help documentation provided with the Clever Internet Suite installation for more details about using this component.
The most common members of the HttpRequest component can be seen below:
Name |
Description |
BinaryRequestItem |
Implements the binary HTTP request storage for the Internet components. |
FormFieldRequestItem |
Is a container for the web form field request data. |
SubmitFileRequestItem |
Implements the file HTTP request storage for the Internet components. |
TextRequestItem |
Provides the text HTTP request storage for the Internet components. |
|
Name |
Description |
Header |
Gets or sets the necessary information about the request header fields (HttpRequestHeader object). |
HeaderSource |
Returns a string list that represents the current Web HTTP request header. |
Items |
Gets the request item at the specified index in the collection. |
RequestSource |
Returns a string list that represents the current Web HTTP request. |
TotalSize |
Gets the total data size in the request items collection. |
|
Name |
Description |
BuildFormPostRequest |
Allows extracting the Web Form POST request from given HtmlParser control and building the HTTP request items. |
BuildFormPostRequestByUrl |
Allows extracting the Web Form POST request from given URL and building the HTTP request items. |
Clear |
Cleans all request members and assigns them to their initial values. |
|
Name |
Description |
GetDataSourceStream |
Occurs when the parser is about to build the BinaryRequestItem request item and substitute its data to the resulting HTTP request. |
GetDataStream |
Occurs when the parser is about to parse the BinaryRequestItem request item and store its data to the given stream object. |
GetFormNumber |
Occurs when the component detects more than one Web FORM tags within the HTML source and requires for specifying which of Form tags should be processed. |
|
|