Lines Matching refs:req_buf

150 	smart_str req_buf = {0};  in php_stream_url_wrap_http_ex()  local
379 smart_str_append(&req_buf, Z_STR_P(tmpzval)); in php_stream_url_wrap_http_ex()
380 smart_str_appendc(&req_buf, ' '); in php_stream_url_wrap_http_ex()
386 smart_str_appends(&req_buf, "GET "); in php_stream_url_wrap_http_ex()
397 smart_str_appends(&req_buf, path); in php_stream_url_wrap_http_ex()
403 smart_str_appends(&req_buf, ZSTR_VAL(resource->path)); in php_stream_url_wrap_http_ex()
405 smart_str_appendc(&req_buf, '/'); in php_stream_url_wrap_http_ex()
410 smart_str_appendc(&req_buf, '?'); in php_stream_url_wrap_http_ex()
411 smart_str_appends(&req_buf, ZSTR_VAL(resource->query)); in php_stream_url_wrap_http_ex()
420 smart_str_appends(&req_buf, " HTTP/"); in php_stream_url_wrap_http_ex()
421 smart_str_appends(&req_buf, protocol_version); in php_stream_url_wrap_http_ex()
422 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
425 smart_str_appends(&req_buf, " HTTP/1.0\r\n"); in php_stream_url_wrap_http_ex()
544 smart_str_appends(&req_buf, "Authorization: Basic "); in php_stream_url_wrap_http_ex()
545 smart_str_appends(&req_buf, ZSTR_VAL(stmp)); in php_stream_url_wrap_http_ex()
546 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
556 smart_str_appends(&req_buf, "From: "); in php_stream_url_wrap_http_ex()
557 smart_str_appends(&req_buf, FG(from_address)); in php_stream_url_wrap_http_ex()
558 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
563 smart_str_appends(&req_buf, "Host: "); in php_stream_url_wrap_http_ex()
564 smart_str_appends(&req_buf, ZSTR_VAL(resource->host)); in php_stream_url_wrap_http_ex()
567 smart_str_appendc(&req_buf, ':'); in php_stream_url_wrap_http_ex()
568 smart_str_append_unsigned(&req_buf, resource->port); in php_stream_url_wrap_http_ex()
570 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
580 smart_str_appends(&req_buf, "Connection: close\r\n"); in php_stream_url_wrap_http_ex()
603 smart_str_appendl(&req_buf, ua, ua_len); in php_stream_url_wrap_http_ex()
622 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
623 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
624 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
628 smart_str_appends(&req_buf, user_headers); in php_stream_url_wrap_http_ex()
629 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
638 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
639 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
640 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
643 smart_str_appends(&req_buf, "Content-Type: application/x-www-form-urlencoded\r\n"); in php_stream_url_wrap_http_ex()
646 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
647 smart_str_appendl(&req_buf, Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
649 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
653 php_stream_write(stream, ZSTR_VAL(req_buf.s), ZSTR_LEN(req_buf.s)); in php_stream_url_wrap_http_ex()
934 smart_str_free(&req_buf); in php_stream_url_wrap_http_ex()