mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
remove ftp code
This commit is contained in:
parent
6b32d503e2
commit
d23703ff9a
4 changed files with 5 additions and 80 deletions
|
@ -1,18 +0,0 @@
|
|||
#include "curl/curl.h"
|
||||
|
||||
#include "types.h"
|
||||
#include "util.h"
|
||||
|
||||
void ftp_set_options(CURL* easy_handle) {
|
||||
curl_easy_setopt(easy_handle, CURLOPT_VERBOSE, 1L);
|
||||
}
|
||||
|
||||
void ftp_set_cmd(CURL* easy_handle, const char* cmd) {
|
||||
struct curl_slist *cmd_list = NULL;
|
||||
cmd_list = curl_slist_append(cmd_list, cmd);
|
||||
|
||||
curl_easy_setopt(easy_handle, CURLOPT_QUOTE, cmd_list);
|
||||
curl_easy_setopt(easy_handle, CURLOPT_NOBODY, 1L);
|
||||
|
||||
curl_slist_free_all(cmd_list);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue