How do I specify a pathname in libcurl? (libcurl how to specify pathname) or libcurl how to specify p

20 Replies, 1112 Views

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.

Messages In This Thread



Users browsing this thread: 1 Guest(s)