| 431 | |
| 432 | |
| 433 | void cURLManager::infoComplete(CURLcode result) { |
| 434 | if (result != CURLE_OK) |
| 435 | debugf(1, "File transfer terminated with error from libcurl %d : %s\n", |
| 436 | result, errorBuffer); |
| 437 | if (httpHeader) { |
| 438 | curl_slist_free_all(httpHeader); |
| 439 | httpHeader = NULL; |
| 440 | } |
| 441 | if (formPost) { |
| 442 | curl_formfree(formPost); |
| 443 | formPost = NULL; |
| 444 | formLast = NULL; |
| 445 | } |
| 446 | removeHandle(); |
| 447 | finalization((char*)theData, theLen, result == CURLE_OK); |
| 448 | justCalled = true; |
| 449 | free(theData); |
| 450 | theData = NULL; |
| 451 | theLen = 0; |
| 452 | } |
| 453 | |
| 454 | |
| 455 | bool cURLManager::getFileTime(time_t& t) { |
no test coverage detected