Microsoft KB Archive/176419

= FIX: Inet Control Method OpenURL Fails If No Proxy Selected =

Article ID: 176419

Article Last Modified on 12/10/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Internet Client Software Development Kit 4.0
 * Microsoft Internet Explorer 4.0 128-Bit Edition

-



This article was previously published under Q176419



SYMPTOMS
If the Internet Explorer 4.0 option "Access the Internet using a proxy server" check box is not selected when using the Internet Transfer control "OpenUrl" method within an HTML page, then the OpenURL method will fail.



CAUSE
The problem is inherited from a bug in the Internet Explorer 4.0 WinInet API function InternetOpenUrl. The problem occurs only on computers that have Internet Explorer 4.0 installed, rather than Internet Explorer 3.x.



RESOLUTION
Using the Inet control "Execute" method with the "GET" verb retrieves a file if the "Access the Internet using a proxy server" check box is not selected. The complete HTML code page is shown later in the MORE INFORMATION section.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Internet Explorer 4.01. The problem should not occur on systems that have this installed.



Steps to Reproduce Behavior

 * 1) Start Internet Explorer 4.0.
 * 2) From the View menu, select Internet Options.
 * 3) Click the Connection tab.
 * 4) Clear the "Access the Internet using a proxy server" check box.
 * 5) Put the code below in a HTML page.
 * 6) Bring up the HTML page you just created in Internet Explorer 4.0.
 * 7) Enter the URL you want to access.
 * 8) Click the "Test Me with OpenUrl" command button. The OpenUrl method fails.
 * 9) Click the "Test Me with Get" command button. The HTML page is retrieved as expected

NOTE: Using the "Execute" method with the "GET" verb is the workaround to the OpenUrl bug.

 

  Enter URL you want to access:  

 

 </SCRIPT>

</BODY> </HTML>

<div class="references_section">