SAMPLE: Internet Transfer Control Samples (286809)



The information in this article applies to:

  • Microsoft Visual Basic Enterprise Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP4
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP3
  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0

This article was previously published under Q286809

SUMMARY

This article includes two samples that demonstrate how to use the Internet Transfer Control (ITC) for File Transfer Protocol (FTP) and for Hypertext Transfer Protocol (HTTP).

The ITC_HTTPSample.exe file demonstrates how you can use ITC asynchronously by using the Execute method for HTTP verbs, such as GET and POST, with or without user credentials. This sample also shows how you can use the control synchronously by using the OpenURL method to perform an HTTP GET request.

The ITC_FTPSample.exe file demonstrates how you can use ITC for FTP commands such as Dir, CD, Rename, Put, Size, Get, and Delete, with or without user credentials (user name and password).

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

MORE INFORMATION

The following files are available for download from the Microsoft Download Center:
Release Date: September 10, 2002

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. The ITC_HTTPSample.exe file contains the following files:

File nameSize
Form1.frm13931 bytes
Form1.frx213 bytes
Form2.frm1396 bytes
ITCTest.vbp780 bytes
testparam.asp547 bytes
Release Date: September 10, 2002

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. The ITC_FTPSample.exe file contains the following files:

File nameSize
frmFTPSample.frm23775 bytes
frmFTPSample.frx3318 bytes
ITCFTPSample.vbp832 bytes

REFERENCES

For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

233037 INFO: Limitations of Internet Transfer Control

263839 HOWTO: Use Long File Names with the Internet Transfer Control Execute Method

173264 HOWTO: Internet Transfer Control Using Username and Password

171379 HOWTO: Use the Proxy Property in the Internet Transfer Control

229666 HOWTO: Download a Binary File with the Internet Transfer Control via the GetChunk Method

188956 PRB: ITC Cannot Perform ASCII-type FTP Transfer


Modification Type:MajorLast Reviewed:6/24/2005
Keywords:kbdownload kbdownload kbfile kbinfo kbITC KB286809 kbAudDeveloper