For libcurl how to specify pathname, here’s a quick test:
```c
curl_easy_setopt(curl, CURLOPT_URL, "file:///C:/stuff/test.txt");
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
```
Run this and check the verbose output—it’ll tell you if libcurl can’t find the file.
Btw, relative paths *can* work, but you need to set the working dir properly. Messy though.
```c
curl_easy_setopt(curl, CURLOPT_URL, "file:///C:/stuff/test.txt");
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
```
Run this and check the verbose output—it’ll tell you if libcurl can’t find the file.
Btw, relative paths *can* work, but you need to set the working dir properly. Messy though.
