Symptoms

Assume that you develop a Windows Store app that uses the Windows.Web.Http.HttpClient class to send HTTPS requests to a web server. When you capture a network trace of the traffic exchanged between the app and the server, you notice that each call to the Windows.Web.Http.HttpClient.GetStringAsync method or other similar methods of the Windows.Web.Http.HttpClient class opens new connections to the web server. This behavior adversely affects the app performance.

Note The Windows.Web.Http.HttpClient class uses the Windows Internet (WinINet) API to send HTTPS requests. This issue also occurs when you develop a Windows desktop application that uses the WinINet API directly and you provide the INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS flag to the HttpOpenRequest function.

Resolution

Update information

Internet Explorer also uses the WinINet API. To resolve this issue, install the most recent cumulative security update for Internet Explorer. To do this, go to Microsoft Update.

For technical information about the most recent cumulative security update for Internet Explorer, go to the following Microsoft website:

http://www.microsoft.com/technet/security/current.aspxNote This update was first included in security update 2969262.

For more information about security update 2969262, click the following article number to view the article in the Microsoft Knowledge Base:

2969262 MS14-035: Cumulative security update for Internet Explorer: June 10, 2014

Workaround

Use the System.Net.Http.HttpClient class

If you develop a Windows Store app, you can work around this issue by not using the Windows.Web.Http.HttpClient class. Instead, you can use the System.Net.Http.HttpClient class, because it has its own HTTP protocol implementation.

Do not use the INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS flag 

If you develop a Windows desktop application that uses the WinINet API, you can work around this issue by not using the INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS flag to the HttpOpenRequest function.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

For more information about the Windows.Web.Http.HttpClient class, go to the following Microsoft website:

General information about the Windows.Web.Http.HttpClient classFor sample code about the Windows.Web.Http.HttpClient class, go to the following Microsoft website:

Sample code about the Windows.Web.Http.HttpClient classFor more information about the HttpOpenRequest function, go to the following Microsoft website:

General information about HttpOpenRequest functionFor more information about the System.Net.Http.HttpClient class, go to the following Microsoft website:

General information about System.Net.Http.HttpClient classSee the terminology that Microsoft uses to describe software updates.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!

×