libhttp
libhttp copied to clipboard
Compiling on Windows
so i'm compiling on windows using mingw 8.1 and regular cmd.exe compiling works, altough "clean" uses linux specific stuff that fails to cleanup properly nonetheless it compiles
however i noticed a few things when compiling the simplest make lib/slib forms:
- it requires libpthread-1.dll just for clock_gettime. so i added a clock_gettime.c to sources on windows, so that libpthread is not included if used just for that
- its requiring a mingw gcc dll for div??? when generating the .dll as dependency that i removed by adding -static-libgcc to compile options.. so now just a warning left..
I used part of code in window vsstudio2017 it could fit ,I didnt USE MINGW in Win.
whats the point of using this possibly with less features library instead of libcurl
whats the point of drinking pepsi when we already have coca-cola? anyway i dunno libcurl is fine in most cases, but who knows its good to have alternatives, maybe libcurl becomes a bloated monster, that fails to compile for XP or certain embedded system because it may end too advanced features or being end harder to compile for certain toolchain, or whatever, so its good to have an alternative, specially one that is in C as well :) not to mention if theres some zero day acting on libcurl it may not affect this one
@MyTDT-Mysoft that's true but also maintenance is an important factor. Last commit in this repo was 12 months ago, so if something breaks or there's zero day acting on libhttp you are on your own because nobody maintains it anymore and the author simply abandoned the project. Last commit in libcurl repo was 4 hours ago. But it's also true that there aren't many HTTP clients for C but I think it's good because having too many libraries is overwhelming.
Nice conversation here :smiley: This project is not abandoned, and the source code is maintained, although not all changes are pushed straight away to the git repository.
Mingw on Windows has not been tested by me, so it may require some adaptations before it compiles smoothly.
Update on this: MinGW will be supported soon.
whats the point of using this possibly with less features library instead of libcurl
libcurl is a client-side httplib, this is a server-side httplib which is quite different, am I missing something?