Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet Transfer Control

Status
Not open for further replies.

JimmyK

Programmer
Sep 8, 2000
142
VN
Hello,
I use "Microsoft Internet Transfer Control" to donwload filw. Will you tell me how to specify user/password for proxy?
Note: My proxy is "Microsfot Proxy 2.0" and Authentication is NTLM

Thanks
Jimmy Le
nhan_tiags@yahoo.com
 
I grabbed this out of the MSDN, hope it helps:


Setting the AccessType Property: Using a Proxy Server
In order to make any kind of connection to the Internet, you must determine how your computer is connected to the Internet. If you are on an intranet, you will probably be connected to the Internet via a proxy server.

In short, a proxy server is an intermediary between your computer and the Internet. All computers on an intranet that need to connect to the Internet must do so through a proxy server. Thus the proxy functions as a firewall between the intranet and the Internet, discarding invalid end-user and external requests, thereby protecting the intranet from hostile actions.

To find the proxy settings on your computer

Note The following steps apply only to the Windows 95 and Windows NT® 4.0 systems.

On the Taskbar of your computer, click Start.


On the Settings item, click the Control Panel.


Double-click the Internet icon.


On the Internet Properties dialog box, click Connection.


Under Proxy Server, confirm that the Connect Through a Proxy Server check box is selected.


If it is selected, click Settings. The name of proxy servers you use for various protocols will be found in the dialog box. If no proxy is defined, contact your system administrator for available proxy servers.
If you intend to use a proxy other than that named in the dialog box, set the AccessType property to icNamedProxy (2). Then set the Proxy property to the name of the proxy, as shown in the code below:

Inet1.Proxy = "myProxyName"
Inet1.AccessType = icNamedProxy

On the other hand, if you are content to use the default proxy (as determined by your computer's registry), ignore the Proxy property, and simply set the AccessType to icUseDefault (0).

The settings for AccessType are shown in the following table:

Constant Value Description
icUseDefault 0 (Default) Use Defaults. The control uses default settings found in the registry to access the Internet.
icDirect 1 Direct to Internet. The control has a direct connection to the Internet.
icNamedProxy 2 Named Proxy. Instructs the control to use the proxy server specified in the Proxy property.

David Moore
dm7941@sbc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top