| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
RE: State of things for release?
From: Tiago Conceição <tiago_caza_at_hotmail.com>
Date: Wed, 30 Jul 2008 18:31:35 +0000
> On Wed, Jul 30, 2008 at 04:33:09PM +0000, Tiago Conceição wrote:
yes i try that in my first trys but always return CURLE_OK if file exists or not
my code:
int ToolsSystem::FTPFileExists(const char *host, const char *file, int timeout){ CURL *curl; CURLcode res = CURLE_GOT_NOTHING; curl = curl_easy_init(); if(!curl) return CURLE_GOT_NOTHING; curl_easy_setopt(curl,CURLOPT_URL, UTILSNAMESPACE::StrFormat("%s/%s", host, file)); curl_easy_setopt(curl,CURLOPT_NOBODY, 1L); if(timeout > 0) curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, timeout); //curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); res = curl_easy_perform(curl); curl_easy_cleanup(curl); return res;}
_________________________________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info