• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/lib/

Lines Matching +defs:code +defs:string

272  * NOTE: back in the old days, we added code in the FTP code that made NOBODY
303 /* Returns non-zero if the given string contains CR (\r) or LF (\n),
304 which are not allowed within RFC 959 <string>.
305 Note: The input string is in the client's encoding which might
309 static bool isBadFtpString(const char *string)
311 return ((NULL != strchr(string, '\r')) ||
312 (NULL != strchr(string, '\n'))) ? TRUE : FALSE;
586 /* macro to check for a three-digit ftp status code at the start of the
587 given string */
595 int *code)
600 *code = curlx_sltosi(strtol(line, NULL, 10));
609 int *ftpcode, /* return the ftp-code if done */
618 int code;
620 result = Curl_pp_readresp(sockfd, pp, &code, size);
625 switch(code) {
627 code = Curl_sec_read_msg(conn, buf, PROT_SAFE);
630 code = Curl_sec_read_msg(conn, buf, PROT_PRIVATE);
633 code = Curl_sec_read_msg(conn, buf, PROT_CONFIDENTIAL);
641 /* store the latest code for later retrieval */
642 data->info.httpcode=code;
645 *ftpcode = code;
647 if(421 == code) {
652 * This response code can come at any point so having it treated
673 int *ftpcode) /* return the ftp-code */
1061 /* not an interface, use the given string as host name instead */
1661 CURL_READFUNC_ABORT return code still aborts */
2011 /* BLOCKING, ignores the return code but 'addr' will be NULL in
2216 positive response code and we allow that. */
2221 infof(data, "Got a %03d response code instead of the assumed 200\n",
2327 /* get the size from the ascii string: */
2745 * reply code 234/334.
2987 /* failure response code, and not allowed to fail */
3065 /* there only is this one standard OK return code. */
3109 /* Check for the state outside of the Curl_socket_ready() return code checks
3235 result = status; /* use the already set error code */
3268 /* if 'path' is not the whole string */
3364 /* the response code from the transfer showed an error already so no
3458 failf(conn->data, "QUOT string not accepted: %s", cmd);
4105 * server before returning. The calling code should then try to close the
4306 cur_pos = slash_pos + 1; /* jump to the rest of the string */
4319 cur_pos = slash_pos + 1; /* jump to the rest of the string */