@@ -36,6 +36,7 @@ int postRequest(const std::string &url, const std::string &payload,
36
36
}
37
37
38
38
// Set the URL and payload for the POST request
39
+ setCurlPathForWindows (curl);
39
40
curl_easy_setopt (curl, CURLOPT_URL, url.c_str ());
40
41
curl_easy_setopt (curl, CURLOPT_POSTFIELDS, payload.c_str ());
41
42
@@ -76,6 +77,7 @@ int getRequest(const std::string &url, const std::vector<std::string> &headers,
76
77
return -1 ;
77
78
}
78
79
80
+ setCurlPathForWindows (curl);
79
81
curl_easy_setopt (curl, CURLOPT_URL, url.c_str ());
80
82
81
83
struct curl_slist *chunk = NULL ;
@@ -113,6 +115,7 @@ int putRequest(const std::string &url, const std::string &payload,
113
115
}
114
116
115
117
// Set the URL and payload for the PUT request
118
+ setCurlPathForWindows (curl);
116
119
curl_easy_setopt (curl, CURLOPT_URL, url.c_str ());
117
120
curl_easy_setopt (curl, CURLOPT_CUSTOMREQUEST, " PUT" );
118
121
curl_easy_setopt (curl, CURLOPT_POSTFIELDS, payload.c_str ());
@@ -156,6 +159,7 @@ int patchRequest(const std::string &url, const std::string &payload,
156
159
}
157
160
158
161
// Set the URL and payload for the PATCH request
162
+ setCurlPathForWindows (curl);
159
163
curl_easy_setopt (curl, CURLOPT_URL, url.c_str ());
160
164
curl_easy_setopt (curl, CURLOPT_CUSTOMREQUEST, " PATCH" );
161
165
curl_easy_setopt (curl, CURLOPT_POSTFIELDS, payload.c_str ());
@@ -199,6 +203,7 @@ int deleteRequest(const std::string &url,
199
203
}
200
204
201
205
// Set the URL for the DELETE request
206
+ setCurlPathForWindows (curl);
202
207
curl_easy_setopt (curl, CURLOPT_URL, url.c_str ());
203
208
curl_easy_setopt (curl, CURLOPT_CUSTOMREQUEST, " DELETE" );
204
209
0 commit comments