Simon Mourier's Avatar
Simon Mourier's blog (1346 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c/c++
  • web
  • winapi

WinHttpCrackUrl function gets wrong nScheme

Dec 19, 2024 See the question and my original answer on StackOverflow

INTERNET_SCHEME_HTTPS value is in fact 2 as defined in winhttp.h.

Your code is probably using wininet.h value which is 4.

Make sure you don't mix both, both WinINet and WinHTTP serve the same purpose but are quite different: WinINet vs. WinHTTP

  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms