• Home
  • Raw
  • Download

Lines Matching refs:ftp

793   struct FTP *ftp = conn->data->req.protop;  in ftp_state_user()  local
795 PPSENDF(&conn->proto.ftpc.pp, "USER %s", ftp->user?ftp->user:""); in ftp_state_user()
1356 struct FTP *ftp = conn->data->req.protop; in ftp_state_prepare_transfer() local
1359 if(ftp->transfer != FTPTRANSFER_BODY) { in ftp_state_prepare_transfer()
1399 struct FTP *ftp = conn->data->req.protop; in ftp_state_rest() local
1402 if((ftp->transfer != FTPTRANSFER_BODY) && ftpc->file) { in ftp_state_rest()
1420 struct FTP *ftp = conn->data->req.protop; in ftp_state_size() local
1423 if((ftp->transfer == FTPTRANSFER_INFO) && ftpc->file) { in ftp_state_size()
1441 struct FTP *ftp = data->req.protop; in ftp_state_list() local
1458 const char *inpath = ftp->path; in ftp_state_list()
1526 struct FTP *ftp = conn->data->req.protop; in ftp_state_type() local
1539 ftp->transfer = FTPTRANSFER_INFO; in ftp_state_type()
1583 struct FTP *ftp = conn->data->req.protop; in ftp_state_ul_setup() local
1659 ftp->transfer = FTPTRANSFER_NONE; in ftp_state_ul_setup()
1682 struct FTP *ftp = data->req.protop; in ftp_state_quote() local
1743 if(ftp->transfer != FTPTRANSFER_BODY) in ftp_state_quote()
2043 struct FTP *ftp = data->req.protop; in ftp_state_mdtm_resp() local
2115 ftp->transfer = FTPTRANSFER_NONE; /* mark to not transfer data */ in ftp_state_mdtm_resp()
2124 ftp->transfer = FTPTRANSFER_NONE; /* mark to not transfer data */ in ftp_state_mdtm_resp()
2178 struct FTP *ftp = data->req.protop; in ftp_state_retr() local
2185 ftp->downloadsize = filesize; in ftp_state_retr()
2209 ftp->downloadsize = -data->state.resume_from; in ftp_state_retr()
2211 data->state.resume_from = filesize - ftp->downloadsize; in ftp_state_retr()
2221 ftp->downloadsize = filesize-data->state.resume_from; in ftp_state_retr()
2225 if(ftp->downloadsize == 0) { in ftp_state_retr()
2232 ftp->transfer = FTPTRANSFER_NONE; in ftp_state_retr()
2374 struct FTP *ftp = data->req.protop; in ftp_state_get_resp() local
2409 (ftp->downloadsize < 1)) { in ftp_state_get_resp()
2442 else if(ftp->downloadsize > -1) in ftp_state_get_resp()
2443 size = ftp->downloadsize; in ftp_state_get_resp()
2481 ftp->transfer = FTPTRANSFER_NONE; /* don't download anything */ in ftp_state_get_resp()
2531 struct FTP *ftp = data->req.protop; in ftp_state_user_resp() local
2539 PPSENDF(&ftpc->pp, "PASS %s", ftp->passwd?ftp->passwd:""); in ftp_state_user_resp()
3132 struct FTP *ftp = data->req.protop; in ftp_done() local
3140 if(!ftp) in ftp_done()
3190 result = Curl_urldecode(data, ftp->path, 0, &path, NULL, TRUE); in ftp_done()
3256 if(!result && (ftp->transfer == FTPTRANSFER_BODY) && ftpc->ctl_valid && in ftp_done()
3307 (ftp->transfer == FTPTRANSFER_BODY)) { in ftp_done()
3339 ftp->transfer = FTPTRANSFER_BODY; in ftp_done()
3345 Curl_safefree(ftp->pathalloc); in ftp_done()
3487 struct FTP *ftp = data->req.protop; in ftp_do_more() local
3546 if(ftp->transfer <= FTPTRANSFER_INFO) { in ftp_do_more()
3587 ftp->downloadsize = -1; /* unknown as of yet */ in ftp_do_more()
3604 if(ftp->transfer == FTPTRANSFER_BODY) { in ftp_do_more()
3623 if(!result && (ftp->transfer != FTPTRANSFER_BODY)) in ftp_do_more()
3659 struct FTP *ftp = conn->data->req.protop; in ftp_perform() local
3660 ftp->transfer = FTPTRANSFER_INFO; in ftp_perform()
3694 struct FTP *ftp = conn->data->req.protop; in init_wc_data() local
3695 char *path = ftp->path; in init_wc_data()
3700 last_slash = strrchr(ftp->path, '/'); in init_wc_data()
3757 wildcard->path = strdup(ftp->path); in init_wc_data()
3828 struct FTP *ftp = conn->data->req.protop; in wc_statemach() local
3835 free(ftp->pathalloc); in wc_statemach()
3836 ftp->pathalloc = ftp->path = tmp_path; in wc_statemach()
4101 struct FTP *ftp = data->req.protop; in ftp_parse_url_path() local
4104 const char *path_to_use = ftp->path; in ftp_parse_url_path()
4190 ssize_t absolute_dir = ((cur_pos - ftp->path > 0) && in ftp_parse_url_path()
4253 if(data->set.upload && !ftpc->file && (ftp->transfer == FTPTRANSFER_BODY)) { in ftp_parse_url_path()
4267 Curl_urldecode(conn->data, ftp->path, 0, &path, &dlen, TRUE); in ftp_parse_url_path()
4290 struct FTP *ftp = conn->data->req.protop; in ftp_dophase_done() local
4303 if(ftp->transfer != FTPTRANSFER_BODY) in ftp_dophase_done()
4385 struct FTP *ftp; in ftp_setup_connection() local
4387 conn->data->req.protop = ftp = calloc(sizeof(struct FTP), 1); in ftp_setup_connection()
4388 if(NULL == ftp) in ftp_setup_connection()
4391 ftp->path = &data->state.up.path[1]; /* don't include the initial slash */ in ftp_setup_connection()
4395 type = strstr(ftp->path, ";type="); in ftp_setup_connection()
4424 ftp->transfer = FTPTRANSFER_BODY; in ftp_setup_connection()
4425 ftp->downloadsize = 0; in ftp_setup_connection()
4431 ftp->user = conn->user; in ftp_setup_connection()
4432 ftp->passwd = conn->passwd; in ftp_setup_connection()
4433 if(isBadFtpString(ftp->user)) in ftp_setup_connection()
4435 if(isBadFtpString(ftp->passwd)) in ftp_setup_connection()