Build Form Post Request |
||
The Http Request component creates request data in any formats including "multipart/form-data", "application/www-form-urlencoded", "text/xml" or any custom format. You can add each form value manually or extract and create them from existing HTML source, URL or HTML file with FORM controls. Overload list for the BuildFormPostRequest method allows you to specify the most used combinations of input parameters. Submit Form DataThe BuildFormPostRequest method creates new Form Request by specifying HTML source for the following form:
The code that does the work:
Upload FileIf you need to create a request for Uploading file to the server, simple specify HTML source for your Form and BuildFormPostRequest will do all the work for you:
The following code creates a request for uploading file to the server:
Example 1If you have a web page with Form Data which you want to submit from your program, you can specify a link to this web page and BuildFormPostRequest will download the page, parse HTML and extract all necessary Form Parameters:
Example 2Using HttpRequest component you can create any Web request manually by using one of the following functions:
|