dcsimg
September 24, 2018
Hot Topics:

Using the Internet Transfer Control: Part 1

  • November 19, 2002
  • By Sam Huggill
  • Send Email »
  • More Articles »

To load the control, open VB, click Project, Components. Scroll down and select Microsoft Internet Transfer Control.

The Internet Transfer Control exposes some useful properties. First of all, the AccessType property. This can have three different values. There are as follows:

  1. icUseDefault
  2. icDirect
  3. icNamedProxy

icUseDefault is the one you will use most of the time, but icDirect and icNamedProxy allow you to really make your application very flexible. The Inet control exposes a Proxy property which allows you to specify the name/IP address of a computer to go through to get data.

When it comes to protocols, the Inet control has them all! Just take a look:

  1. icUnknown
  2. icDefault
  3. icFTP
  4. icGopher
  5. icHTTP
  6. icHTTPS

Most of the time you will be using icHTTP and icFTP, although you may stray across the others at some time. Most of the names are self explanatory, so I won't bother saying what each one does. The control also gives the following properties:

  • URL - The complete URL of what you want to communicate with. e.g. http://www.vbsquare.com/
  • RemoteHost - The name/IP address of the remote host you are connecting with.
  • RemotePort - The port to connect on. For HTTP connections, you want port 80. For FTP, port 21.
  • Document - The name of an individual document
  • UserName - Username to login with
  • Password - Password that goes with the username




Page 2 of 4



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

Thanks for your registration, follow us on our social networks to keep up-to-date