On Fri Oct 25 15:30:30 2024 +0000, Torge Matthies wrote:
`normalize_uri_scheme` to turn httpd:// into http:// and httpsd:// into https://, `recreate_url` to add the port to the url. I figured using `WinHttpCrackUrl` and re-combining the parts together with the port would be cleaner than trying to find where the hostname ends manually and splicing the port in at that point.
Can you query it back from winhttp after it was resolved, or something similar? It's hard to believe this needs manual handling outside of network layer.