Site Map Contact Us Home
E-mail Newsletter
Subscribe to get informed about
Clever Components news.

Your Name:
Your Email:
 
SUBSCRIBE
 
Previous Newsletters
 




Products Articles Downloads Order Support
Customer Portal      

HTTP Request

Features | Detailed Description

The HTTP Request is a component from the Clever Internet 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.

Available in .NET, VCL and ActiveX editions.

Features:

  • Submit Form Values
  • Submit File requests using stream or 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

Build New HTTP Request data in just few lines of code

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.

// [Delphi]
html.Add('<form action="http://www.domain.com/submit.asp" method="post">');
html.Add('<input type="text" name="username" value="John">');
html.Add('<input type="file" name="userfile">');
html.Add('<input type="submit" name="submit" value="submit"> </form>');

clHttpRequest1.BuildFormPostRequest(html);
httpClient.Post('http://www.domain.com/submit.asp', clHttpRequest1, response);

// [C#]
httpRequest1.Items.AddFormField("username", " John");
httpRequest1.Items.AddSubmitFile("userfile", "c:\\file.zip");

httpClient.Post("http://www.domain.com/submit.asp", httpRequest1, response);

See Build Form Post Request for more details.

Build HTTP Request data in IDE design-time

With HttpRequest you can create Form Post or Submit File requests without writing a single line of the code.

Simple put the component on to the form and choose the desired option within the component editor in Delphi or component menu in Visual Studio: "Build by Url", "Build by File" or "Build by Text". After that the HttpRequest component will create all necessary request data and automatically change the HTTP header values.

Samples, including WinForm clients with full source code

Please see the Demos code (FormPost, SubmitFile, SubmitWizard) and also the indexed Help documentation provided with the Clever Internet Suite installation to learn more about using this component in your application.

Includes support for Delphi, C++Builder, C#, VB.NET and Javascript.

Complete Delphi and C# source code

When Purchasing the Clever Internet Suite you receive the full sources for all suite components and also free unlimited support.

Interested?

    Copyright © 2000-2024