You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i noticed that when running this test code:
http::Request request("http://test.com/test");
// send a get request
http::Response response = request.send("GET");
std::cout << response.body.data() << std::endl; // print the result
It gets an error in HtppRequest.h line 401.
I fixed it with putting this code right before line 401:
WSADATA wsaData;
int error = WSAStartup(MAKEWORD(2, 2), &wsaData);
if (error != 0)
throw std::system_error(error, std::system_category(), "WSAStartup failed");
now everything seems to work
The text was updated successfully, but these errors were encountered:
Hello, i noticed that when running this test code:
It gets an error in HtppRequest.h line 401.
I fixed it with putting this code right before line 401:
now everything seems to work
The text was updated successfully, but these errors were encountered: