Lines Matching refs:header
107 static bool check_has_header(const char *headers, const char *header) { in check_has_header() argument
109 while ((s = strstr(s, header))) { in check_has_header()
240 smart_str header = {0}; in php_stream_url_wrap_http_ex() local
249 smart_str_appendl(&header, "CONNECT ", sizeof("CONNECT ")-1); in php_stream_url_wrap_http_ex()
250 smart_str_appends(&header, ZSTR_VAL(resource->host)); in php_stream_url_wrap_http_ex()
251 smart_str_appendc(&header, ':'); in php_stream_url_wrap_http_ex()
252 smart_str_append_unsigned(&header, resource->port); in php_stream_url_wrap_http_ex()
253 smart_str_appendl(&header, " HTTP/1.0\r\n", sizeof(" HTTP/1.0\r\n")-1); in php_stream_url_wrap_http_ex()
275 smart_str_appendl(&header, s, p - s); in php_stream_url_wrap_http_ex()
276 smart_str_appendl(&header, "\r\n", sizeof("\r\n")-1); in php_stream_url_wrap_http_ex()
299 smart_str_appendl(&header, s, p - s); in php_stream_url_wrap_http_ex()
300 smart_str_appendl(&header, "\r\n", sizeof("\r\n")-1); in php_stream_url_wrap_http_ex()
312 smart_str_appendl(&header, "\r\n", sizeof("\r\n")-1); in php_stream_url_wrap_http_ex()
314 if (php_stream_write(stream, ZSTR_VAL(header.s), ZSTR_LEN(header.s)) != ZSTR_LEN(header.s)) { in php_stream_url_wrap_http_ex()
319 smart_str_free(&header); in php_stream_url_wrap_http_ex()