Proxy Authentication for VB

If you access the Internet behind a firewall, the connection’s proxy options must be set.

Code Example

Set the proxy options for HTTPS protocol as seen below:

 

iRetVal = InternetSetOptionStr(hHttpOpenRequest, _ INTERNET_OPTION_PROXY_USERNAME, _

username, Len(username) + 1)

 

iRetVal = InternetSetOptionStr(hHttpOpenRequest, _ INTERNET_OPTION_PROXY_PASSWORD, _

password, Len(password) + 1)

 

 

Note: Proxy authentication only works for IE4.0 wininet. For IE3.0x, you will need to manually add the Proxy Authentication header.

 

 

Return to Top

 

Copyright © 2006 United Parcel Service of America, Inc.