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     

Clever Internet Suite Tutorials


Clever Internet Suite Tutorials


Three new examples were added:
- Setting Up HTTP Proxy Parameters in TCP-based Client Components;
- How to extract/add MIME headers in E-mail messages and HTTP requests;
- How to Build and Parse a JSON String with Objects.

Now, more than ten years on the market, the Clever Internet Suite got lots of feedback and usage experience. Our customers asked us about code examples, demos and "How To" code snippets. To summarize the experience, we decided to publish the most commonly asked examples and code snippets in our Knowledge Base.

This article represents a list of recently added examples with short comments and downloading links. This list will be periodically updated, new items will be added. Please stay tuned to new examples and use cases of the Clever Internet Suite library.

All example projects and code snippets are available on GitHub

C# / VB.NET Examples

 

Delphi / C++Builder Examples

  Name   Description
  How to Build and Parse a JSON String with Objects The tutorial makes a JSON request, which includes objects and object properties. Also there is a code, which parses received JSON response and extracts all included object properties.
  Setting Up HTTP Proxy Parameters in TCP-based Client Components The tutorial shows how to set up proxy parameters in the TclDownloader, TclUploader, TclHttp, TclFtp, TclSmtp, and other TCP-based client components.
  How to extract/add MIME headers in E-mail messages and HTTP requests This example describes how to use the TclHeaderFieldList class for extracting and composing MIME headers for emails or HTTP.
 How to create/parse SOAP MTOM/XOP, XML, and binary attachments The tutorial shows how to work with SOAP messages, containing MTOM/XOP, XML, or binary attachments.
 How to send a SOAP WSDL request The example demonstrates how to build a SOAP request, specify WSDL method and parameters, send this request to a WSDL service, and receive a response.
 How to send a GET request with JSON data This example provides three different ways to submit JSON GET requests, including raw JSON strings and RTTI JSON objects serialization/deserialization.
 Sending Mail with Attachments from Memory Stream A new Knowledge Base example of sending E-mail messages with attachments from Memory Stream.
 Adding text and attachments to the E-mail message Shows how to add text and attachments manually to the E-mail message.
 Signing and Encrypting Mail via S/MIME A Knowledge Base example of signing and encrypting the e-mail message with digital signature.
 VK Authorization, getting the OAUTH code in Delphi App using TWebBrowser The example demonstrates how to authorize at VK.com social Network and get access to the user's photo gallery.
 How to make the PUT HTTP request with JSON data Learn more on how to PUT JSON request, including an OAUTH authorization token, and get the server reply.
 Sign XML Documents with Digital Signatures This example demonstrates how to sign an XML document with digital signature by using of the SOAP Message component.
 How to Catch HTTP Error Response The example handles HTTP exceptions, gets the HTTP status code and downloads the HTTP server response.
 Setting Up SFTP Public Key Authorization The example demonstrates how to set up the SFTP Public Key Authorization for the SFTP Client component.
 Load and Associate a Private Key with the Public Certificate This Delphi example loads a private key from a file and associates it with the public certificate. Also, it includes a code snippet illustrating exporting of the private key from the certificate.
 Decode IMAP UTF7 mailbox names in Delphi This Delphi example decodes IMAP mailbox names that include Unicode international symbols being encoded in modified UTF-7 format (see RFC 2060).
 Read a fixed number of bytes from the socket using TcpClientConnection The example connects to a remote server, reads a fixed number of bytes from the socket, and after that reads the remaining bytes.
 Binding TcpClientConnection to the specified interface and port number This sample provides a special LocalBindingConnection class that connects to a remote server and binds to the specified local interface and port number.
 Receiving multiple requests using Simple HTTP Server The example starts listening the socket in a loop. Incoming requests are accepted until you request a specific URL in your web browser.
 Encrypt and Decrypt files on the disk   This sample cryptographically encrypts / decrypts files with digital x509 certificate.
 Send email with an Office365 account This sample connects to the smtp.office365.com host via the STARTTLS command, composes a sample mail message and sends it.
 Build DNS server response on the fly based on the name submitted This sample represents a DNS server that responds with an in-memory list of IPs based on the name submitted.
 Send mail with German Umlauts This sample demonstrates how to set up the TclMailMessage component correctly for transferring German Umlauts and other UTF-8 characters.
 Parse XML, elements, attributes The sample parses an XML document that is provided within Delphi string list, extracts all tags, tag attributes and included data.
 Get host ip address behind load balancer using proxy protocol The PROXY protocol provides a convenient way to safely transport connection information such as a client's address across multiple layers of NAT, TCP proxies or load balancers. The described code parses this information and removes the proxy header packet from the data stream. The example program utilizes the IMAP server component behind an Amazon load balancer (ELB).
 Check if PC is connected to the Internet Checks the Internet connected state and tries to access the specified web resource by using of the system connection settings: proxy, socks, etc.
 Get IE proxy settings for the Http client component This example sets up the System Proxy settings in the Http client component. The supported proxy types: Http, Https, and Socks.
 Convert RSA Public Key to X509 Subject Key Info format There are two simple functions that convert RSA Public Key format to X509 Subject Key Info format in base64 and PEM representation.
 How to use the Simple HTTP Server component in the blocking mode The Clever Internet Suite library provides the TclSimpleHttpServer component, which works in the single-threaded blocking mode.
 How to Post JSON data If you need to submit data in JSON format, you can use the following two components: TclHttp and TclHttpRequest.
 Console FTP client The program represents fully functional command-line FTP client.
 Copy TWebBrowser cookies to TclHttp The examples opens the TWebBrowser, navigates to a website, copies the website cookies to the TclHttp and finally runs the TclHttp downloading.
 Get the complete FTP directory tree The sample connects to an FTP server and gets the complete FTP directory tree recursively.
 Parse inner HTML The sample runs the TclHtmlParser component and extracts inner HTML from specific tags.
 Ping client The sample represents simple ICMP client with Ping functionality.
 Asynchronous HTTP download Download URLs asynchronously in multiple threads from thread pool.
 Asynchronous SSL client / server The client connects to the server via SSL and sends/receives data. The server accepts data from the client and also allows you to send non-requested data to connected clients.
 Check Internet connected state Retrieves the connected state of the local system.
 Custom TCP client / server TCP client and multi-threaded TCP server that allows to send/receive multiple text lines and also send/receive binary data. 
 E-mail replying / forwarding The sample can receive E-mail messages, forward or reply to selected message.
 Get CSP Information Gets an information about installed Cryptographyc Service Providers.
 Get IE proxy settings Get the default Internet Explorer proxy settings.
 HTML parser for Firemonkey The sample parses HTML tags by using of TclHtmlParser component in Firemonkey.
 Multithreaded Mail Sender Loads E-mails from a database and sends it asynchronously in a thread pool.
 Parse HTML table text This sample parses HTML source, extracts tables and displays table cell text.
 SSL client / server There are two programs that implement both simple TCP client and TCP server with SSL/TLS encryption.
 TCP client / server connection The client creates a connection and sends data. The server accepts data and returns it to the client.
 Wake up on LAN Allows a computer to be turned on or awakened by a network message.

 

C# / VB.NET Examples

  Name   Description
  Decode IMAP UTF7 mailbox names in C# This C# example decodes IMAP mailbox names, which include Unicode international symbols, encoded in modified UTF-7 format (see RFC 2060).
  Read a fixed number of bytes from the socket using TcpClientConnection in C# The example connects to a remote server, reads a fixed number of bytes from the socket, and after that reads the remaining bytes.
 Receiving multiple requests using Simple HTTP Server in .NET The example starts listening the socket in a loop. Incoming requests are accepted until you request a specific URL in your web browser.
 Sending Emails using GMail in C# This sample connects to a GMail mailbox via the SMTP protocol, composes a sample mail message and sends it.
 Reading Emails using GMail in C# The sample connects to a GMail mailbox via the IMAP4 protocol, lists folders and reads Emails.
 OAuth Authorization using GMail in C# The example connects to a Google Account via the OAUTH protocol, obtains an authorization token and uses it for sending Email.
 Display HTML mail The sample retrieves a POP3 email message and displays the HTML content in a WebBrowser class.
 Console HTTP client Is a simple HTTP client that allows you to download text or HTML content and output it to the console window.
 Custom TCP client / server The example represents a fully functional TCP client and a multi-threaded TCP server.
 Enumerate Network adapters Gets the IP addresses of Network interfaces on multi-homed PC.
 Mail Sending Queue The example watches the specified directory for new mail messages, loads, and relays them to recipients.
 TCP client /server connection There are two examples. The client creates a connection and sends data. The server accepts data and returns it to the client.
 Wake up on LAN for C# Allows a computer to be turned on or awakened by a network message.

 

Best regards,
Clever Components team
www.clevercomponents.com

    Copyright © 2000-2019