This is my Code. Im linking statically with -lssl -lcrypto -lhttplib -lws2_32 -lcrypt32 and CPPHTTPLIB_OPENSSL_SUPPORT is defined before #include
Thanks for any Help in Advance.
EDIT: Dont know why my Code isnt displayed correctly... sorry for that
Ok, i got the Problem: When using SSL (= HTTPS Request and not HTTP), then the URL doesnt have to contain the "https://", it just needs (in my case) the "etsy.api.com"
Hello,
im trying to connect to ETSY API v3 to obtain an Access Token with OAuth2 Protocol: https://developer.etsy.com/documentation/essentials/authentication/ The Problem is, that i need to make a POST Request to "https://api.etsy.com" but getaddrinfo wont open a Socket and returns INVALID_SOCKET, which makes everything after fail. Exactly like here: https://githublab.com/repository/issues/yhirose/cpp-httplib/1225 only that i got a (hopefully) valid URL. I dont understand what im doing wrong.
`std::string url("https://api.etsy.com"); httplib::SSLClient client(url);
This is my Code. Im linking statically with -lssl -lcrypto -lhttplib -lws2_32 -lcrypt32 and CPPHTTPLIB_OPENSSL_SUPPORT is defined before #include
Thanks for any Help in Advance.
EDIT: Dont know why my Code isnt displayed correctly... sorry for that