mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 03:25:04 -05:00
702664e959
file got a Last-Modified: header written to the data stream, corrupting the actual data. This was because some conditions from the previous FTP code was not properly brought into the new FTP code. I fixed and I added test case 520 to verify. (This bug was introduced in 7.13.1)
14 lines
308 B
C
14 lines
308 B
C
#include "test.h"
|
|
|
|
int test(char *URL)
|
|
{
|
|
CURLcode res;
|
|
CURL *curl = curl_easy_init();
|
|
curl_easy_setopt(curl, CURLOPT_URL, URL);
|
|
curl_easy_setopt(curl, CURLOPT_FILETIME, 1);
|
|
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
|
|
res = curl_easy_perform(curl);
|
|
curl_easy_cleanup(curl);
|
|
return (int)res;
|
|
}
|