http://bugs.winehq.org/show_bug.cgi?id=16831
--- Comment #15 from TJ support@tjworld.net 2009-01-07 16:44:39 --- Created an attachment (id=18564) --> (http://bugs.winehq.org/attachment.cgi?id=18564) Force HTTPS when INTERNET_FLAG_SECURE - v2
This is a much better implementation of option 4. It relies upon the assertion that INTERNET_FLAG_SECURE and INTERNET_SCHEME_HTTP are mutually exclusive.
A small addition to InternetCrackUrlW() and a change to the calling statement in INTERNET_InternetOpenUrlW() to ensure the dwFlags are passed to it.
This is tested and works correctly. Here's a trace fragment:
trace:wininet:InternetCrackUrlW (L"http://www.audible.com/cgi-bin/licensemgr.cgi?"... 350 80800002 0x32c638) ... trace:wininet:GetInternetSchemeW L"http" 4 trace:wininet:InternetCrackUrlW adjusting protocol to HTTPS since INTERNET_FLAG_SECURE && "http:" trace:wininet:SetUrlComponentValueW L"https" (5) ... trace:wininet:NETCON_init using SSL connection