cpp-httplib
cpp-httplib copied to clipboard
A C++ header-only HTTP/HTTPS server and client library
I am having trouble to consume endpoints of Ollama.app, while curl and debug utilities like Postman are working just fine. # Envrionment conan detected profile ``` arch=armv8 build_type=Release compiler=apple-clang compiler.cppstd=gnu17...
inline Client::Client(const std::string &scheme_host_port, const std::string &client_cert_path, const std::string &client_key_path) { const static std::regex re( R"((?:([a-z]+):\/\/)?(?:\[([\d:]+)\]|([^:/?#]+))(?::(\d+))?)"); The 're' is unable to match 'http://[ff06::c3]:3000' because '[([\d:]+)]' can only match sequences of...
When attempting to run the test suite on Gentoo Linux amd64, I'm seeing most of the `SSLClientServerTest.*` tests fail: ``` [ FAILED ] 6 tests, listed below: [ FAILED ]...
 
 When setting the client authentication mode to SSL_VERIFY_NONE, the host verification is not ignored. Provides a way to ignore host verify.
Hi, it seems that commit fceada9ef42ce1af64a1d5941d8009dd0520901a broke the `GetRangeWithMaxLongLength` test on 32-bit machines - I've tested in a Linux i686 chroot. Running main() from ./googletest/src/gtest_main.cc Note: Google Test filter =...
Hi @yhirose While parsing HTTP headers the library unconditionally applies an url decoding to all headers except for the Location header. https://github.com/yhirose/cpp-httplib/blob/master/httplib.h#L3809 In my specific use case there is a...
Sporadically our java client logs the message "HttpURLConnection.getInputStream java.io.IOException: Error writing to server" which ocurred because the receiving server closed the connection. Our Windows-http client shows the windows error code...
This change makes more of the code introduced in https://github.com/yhirose/cpp-httplib/pull/1775 conditional on feature macros. `CreateFile2`, `CreateFileMappingFromApp` and `MapViewOfFileFromApp` are available only starting from Windows 8. * https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfile2 * https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-createfilemappingfromapp *...
**CreateFile2** not found!!! **CreateFileMappingFromApp** not found!! **MapViewOfFileFromApp** not found! Please fix it for support Windows 7! Thanks! (use CreateFile1 and other original functions, #ifdef win7 and lower)