|
The HTTP Request is an ActiveX component from the Clever Internet ActiveX Suite library. It allows you to create request data to be sent to the server with the POST or GET HTTP methods.
Use this component together with HTTP Client for submitting created request data to a web server for processing by a CGI, ASP.NET or Java servlet.
- Submit Form Values
- Submit File requests using file on the disk
- Multipart Form data, Text, XML and Binary data
- Parameter management - add/remove CGI name/value parameters to a HTTP request
- Define most common HTTP headers such as Range, Accept, Content-Type and any custom headers
- Can be used with any third party HTTP client
- Free one year upgrades and support
The HttpRequest component allows easy creation of 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 as well as extract and create them from existing HTML source, URL or HTML page with FORM controls saved to the file.
Html = "<form action='http://www.domain.com/submit.asp' method='post'>" + _ "<input type='text' name='username' value='John'>" + _ "<input type='file' name='userfile'>" + _ "<input type='submit' name='submit' value='submit'> </form>" clHttpRequest1.BuildFormPostRequestByHtml html httpClient.Request = clHttpRequest1. Object Set response = httpClient.Post("http://www.domain.com/submit.asp") |
clHttpRequest1.AddFormField "username", "John" clHttpRequest1.AddSubmitFile "c:\file.zip" httpClient.Request = clHttpRequest1. Object Set response = httpClient.Post("http://www.domain.com/submit.asp") |
Please see the Demos code (FormPost, SubmitFile, SubmitWizard) and also the indexed Help documentation provided with the Clever Internet ActiveX Suite installation to learn more about using this component in your application.
|