Lines Matching refs:http_code
67 int http_code; member
271 char http_code[4]; in http_should_reconnect() local
296 snprintf(http_code, sizeof(http_code), "%d", s->http_code); in http_should_reconnect()
298 return av_match_list(http_code, s->reconnect_on_http_error, ',') > 0; in http_should_reconnect()
337 if (s->http_code == 401) { in http_open_cnx()
345 if (s->http_code == 407) { in http_open_cnx()
353 if ((s->http_code == 301 || s->http_code == 302 || in http_open_cnx()
354 s->http_code == 303 || s->http_code == 307 || s->http_code == 308) && in http_open_cnx()
374 return ff_http_averror(s->http_code, AVERROR(EIO)); in http_open_cnx()
721 static int check_http_code(URLContext *h, int http_code, const char *end) in check_http_code() argument
726 if (http_code >= 400 && http_code < 600 && in check_http_code()
727 (http_code != 401 || s->auth_state.auth_type != HTTP_AUTH_NONE) && in check_http_code()
728 (http_code != 407 || s->proxy_auth_state.auth_type != HTTP_AUTH_NONE)) { in check_http_code()
730 av_log(h, AV_LOG_WARNING, "HTTP error %d %s\n", http_code, end); in check_http_code()
731 return ff_http_averror(http_code, AVERROR(EIO)); in check_http_code()
1045 s->http_code = strtol(p, &end, 10); in process_line()
1047 av_log(h, AV_LOG_TRACE, "http_code=%d\n", s->http_code); in process_line()
1049 if ((ret = check_http_code(h, s->http_code, end)) < 0) in process_line()
1322 s->http_code != 401) in http_connect()
1417 s->http_code = 200; in http_connect()
1974 if (s->http_code == 407 && in http_proxy_open()
1981 if (s->http_code < 400) in http_proxy_open()
1983 ret = ff_http_averror(s->http_code, AVERROR(EIO)); in http_proxy_open()