Lines Matching refs:req_buf

148 	smart_str req_buf = {0};  in php_stream_url_wrap_http_ex()  local
375 smart_str_append(&req_buf, Z_STR_P(tmpzval)); in php_stream_url_wrap_http_ex()
376 smart_str_appendc(&req_buf, ' '); in php_stream_url_wrap_http_ex()
382 smart_str_appends(&req_buf, "GET "); in php_stream_url_wrap_http_ex()
393 smart_str_appends(&req_buf, path); in php_stream_url_wrap_http_ex()
399 smart_str_appends(&req_buf, ZSTR_VAL(resource->path)); in php_stream_url_wrap_http_ex()
401 smart_str_appendc(&req_buf, '/'); in php_stream_url_wrap_http_ex()
406 smart_str_appendc(&req_buf, '?'); in php_stream_url_wrap_http_ex()
407 smart_str_appends(&req_buf, ZSTR_VAL(resource->query)); in php_stream_url_wrap_http_ex()
416 smart_str_appends(&req_buf, " HTTP/"); in php_stream_url_wrap_http_ex()
417 smart_str_appends(&req_buf, protocol_version); in php_stream_url_wrap_http_ex()
418 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
421 smart_str_appends(&req_buf, " HTTP/1.1\r\n"); in php_stream_url_wrap_http_ex()
540 smart_str_appends(&req_buf, "Authorization: Basic "); in php_stream_url_wrap_http_ex()
541 smart_str_appends(&req_buf, ZSTR_VAL(stmp)); in php_stream_url_wrap_http_ex()
542 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
552 smart_str_appends(&req_buf, "From: "); in php_stream_url_wrap_http_ex()
553 smart_str_appends(&req_buf, FG(from_address)); in php_stream_url_wrap_http_ex()
554 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
559 smart_str_appends(&req_buf, "Host: "); in php_stream_url_wrap_http_ex()
560 smart_str_appends(&req_buf, ZSTR_VAL(resource->host)); in php_stream_url_wrap_http_ex()
563 smart_str_appendc(&req_buf, ':'); in php_stream_url_wrap_http_ex()
564 smart_str_append_unsigned(&req_buf, resource->port); in php_stream_url_wrap_http_ex()
566 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
576 smart_str_appends(&req_buf, "Connection: close\r\n"); in php_stream_url_wrap_http_ex()
599 smart_str_appendl(&req_buf, ua, ua_len); in php_stream_url_wrap_http_ex()
618 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
619 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
620 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
624 smart_str_appends(&req_buf, user_headers); in php_stream_url_wrap_http_ex()
625 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
634 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
635 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
636 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
639 smart_str_appends(&req_buf, "Content-Type: application/x-www-form-urlencoded\r\n"); in php_stream_url_wrap_http_ex()
642 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
643 smart_str_appendl(&req_buf, Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
645 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
649 php_stream_write(stream, ZSTR_VAL(req_buf.s), ZSTR_LEN(req_buf.s)); in php_stream_url_wrap_http_ex()
946 smart_str_free(&req_buf); in php_stream_url_wrap_http_ex()