Skip to content

Use WinINet for HTTP downloads on Windows - #738

Merged
timangus merged 6 commits into
mainfrom
split-http-method
Jul 22, 2025
Merged

Use WinINet for HTTP downloads on Windows#738
timangus merged 6 commits into
mainfrom
split-http-method

Conversation

@timangus

@timangus timangus commented Jul 18, 2025

Copy link
Copy Markdown
Member

After licensing issues kiboshed an alternative means (#733) of solving the ongoing Windows build failure, I've implemented @zturtleman 's suggestion of using the Windows API for HTTP downloads on that platform. The actual download API part of it is refreshingly simple, particularly given the often slightly obscure APIs Windows is renowned for. Anyway, most of the change here is abstracting away the means of download from the rest of the client code. I've also updated Curl and fixed some warnings; not really related to the major change here, but not worth opening another PR over.

Comment thread code/client/cl_curl.c Outdated
Comment thread code/client/cl_http_windows.c Outdated
Comment thread code/client/cl_http_windows.c Outdated
Comment thread code/client/cl_http_windows.c Outdated
Comment thread code/client/cl_main.c Outdated
@timangus
timangus force-pushed the split-http-method branch 2 times, most recently from d90668a to df1cb0d Compare July 19, 2025 10:21
@zturtleman

Copy link
Copy Markdown

Looks good to me. Thanks for working on this.

@timangus

Copy link
Copy Markdown
Member Author

I'll leave this up for a couple more days unless anyone else has points of view, then merge.

Comment thread code/client/cl_http_windows.c Outdated
@timangus
timangus force-pushed the split-http-method branch from df1cb0d to 991ca39 Compare July 22, 2025 13:51
@timangus
timangus force-pushed the split-http-method branch from 991ca39 to f8bcd25 Compare July 22, 2025 13:54
@timangus
timangus merged commit 9814f5f into main Jul 22, 2025
8 checks passed
@timangus
timangus deleted the split-http-method branch July 23, 2025 09:35
@zturtleman zturtleman mentioned this pull request Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants