Lines 404-410
Link Here
|
404 |
if( m_ftpport.length() > 0 ) |
404 |
if( m_ftpport.length() > 0 ) |
405 |
g_curlInterface.easy_setopt(h, CURLOPT_FTPPORT, m_ftpport.c_str()); |
405 |
g_curlInterface.easy_setopt(h, CURLOPT_FTPPORT, m_ftpport.c_str()); |
406 |
else |
406 |
else |
407 |
g_curlInterface.easy_setopt(h, CURLOPT_FTPPORT, NULL); |
407 |
g_curlInterface.easy_setopt(h, CURLOPT_FTPPORT, (const char*)NULL); |
408 |
|
408 |
|
409 |
// allow curl to not use the ip address in the returned pasv response |
409 |
// allow curl to not use the ip address in the returned pasv response |
410 |
if( m_ftppasvip ) |
410 |
if( m_ftppasvip ) |
Lines 804-810
Link Here
|
804 |
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_NOBODY, 0); |
804 |
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_NOBODY, 0); |
805 |
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_WRITEFUNCTION, (void*)dummy_callback); |
805 |
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_WRITEFUNCTION, (void*)dummy_callback); |
806 |
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_FOLLOWLOCATION, 1); |
806 |
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_FOLLOWLOCATION, 1); |
807 |
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_WRITEDATA, NULL); /* will cause write failure*/ |
807 |
g_curlInterface.easy_setopt(m_state->m_easyHandle, CURLOPT_WRITEDATA, (const char*)NULL); /* will cause write failure*/ |
808 |
|
808 |
|
809 |
char err[4096]; |
809 |
char err[4096]; |
810 |
memset(err,0,4096); |
810 |
memset(err,0,4096); |