Lines Matching refs:http_code
71 int http_code; member
280 char http_code[4]; in http_should_reconnect() local
305 snprintf(http_code, sizeof(http_code), "%d", s->http_code); in http_should_reconnect()
307 return av_match_list(http_code, s->reconnect_on_http_error, ',') > 0; in http_should_reconnect()
400 if (s->http_code == 401) { in http_open_cnx()
408 if (s->http_code == 407) { in http_open_cnx()
416 if ((s->http_code == 301 || s->http_code == 302 || in http_open_cnx()
417 s->http_code == 303 || s->http_code == 307 || s->http_code == 308) && in http_open_cnx()
425 s->expires = (s->http_code == 301 || s->http_code == 308) ? INT64_MAX : -1; in http_open_cnx()
449 return ff_http_averror(s->http_code, AVERROR(EIO)); in http_open_cnx()
799 static int check_http_code(URLContext *h, int http_code, const char *end) in check_http_code() argument
804 if (http_code >= 400 && http_code < 600 && in check_http_code()
805 (http_code != 401 || s->auth_state.auth_type != HTTP_AUTH_NONE) && in check_http_code()
806 (http_code != 407 || s->proxy_auth_state.auth_type != HTTP_AUTH_NONE)) { in check_http_code()
808 av_log(h, AV_LOG_WARNING, "HTTP error %d %s\n", http_code, end); in check_http_code()
809 return ff_http_averror(http_code, AVERROR(EIO)); in check_http_code()
1157 s->http_code = strtol(p, &end, 10); in process_line()
1159 av_log(h, AV_LOG_TRACE, "http_code=%d\n", s->http_code); in process_line()
1161 if ((ret = check_http_code(h, s->http_code, end)) < 0) in process_line()
1444 s->http_code != 401) in http_connect()
1539 s->http_code = 200; in http_connect()
2111 if (s->http_code == 407 && in http_proxy_open()
2118 if (s->http_code < 400) in http_proxy_open()
2120 ret = ff_http_averror(s->http_code, AVERROR(EIO)); in http_proxy_open()