Lines Matching refs:req_buf
143 smart_str req_buf = {0}; in php_stream_url_wrap_http_ex() local
372 smart_str_append(&req_buf, Z_STR_P(tmpzval)); in php_stream_url_wrap_http_ex()
373 smart_str_appendc(&req_buf, ' '); in php_stream_url_wrap_http_ex()
379 smart_str_appends(&req_buf, "GET "); in php_stream_url_wrap_http_ex()
390 smart_str_appends(&req_buf, path); in php_stream_url_wrap_http_ex()
396 smart_str_appends(&req_buf, resource->path); in php_stream_url_wrap_http_ex()
398 smart_str_appendc(&req_buf, '/'); in php_stream_url_wrap_http_ex()
403 smart_str_appendc(&req_buf, '?'); in php_stream_url_wrap_http_ex()
404 smart_str_appends(&req_buf, resource->query); in php_stream_url_wrap_http_ex()
413 smart_str_appends(&req_buf, " HTTP/"); in php_stream_url_wrap_http_ex()
414 smart_str_appends(&req_buf, protocol_version); in php_stream_url_wrap_http_ex()
415 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
418 smart_str_appends(&req_buf, " HTTP/1.0\r\n"); in php_stream_url_wrap_http_ex()
551 smart_str_appends(&req_buf, "Authorization: Basic "); in php_stream_url_wrap_http_ex()
552 smart_str_appends(&req_buf, ZSTR_VAL(stmp)); in php_stream_url_wrap_http_ex()
553 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
563 smart_str_appends(&req_buf, "From: "); in php_stream_url_wrap_http_ex()
564 smart_str_appends(&req_buf, FG(from_address)); in php_stream_url_wrap_http_ex()
565 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
570 smart_str_appends(&req_buf, "Host: "); in php_stream_url_wrap_http_ex()
571 smart_str_appends(&req_buf, resource->host); in php_stream_url_wrap_http_ex()
574 smart_str_appendc(&req_buf, ':'); in php_stream_url_wrap_http_ex()
575 smart_str_append_unsigned(&req_buf, resource->port); in php_stream_url_wrap_http_ex()
577 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
587 smart_str_appends(&req_buf, "Connection: close\r\n"); in php_stream_url_wrap_http_ex()
610 smart_str_appendl(&req_buf, ua, ua_len); in php_stream_url_wrap_http_ex()
629 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
630 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
631 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
635 smart_str_appends(&req_buf, user_headers); in php_stream_url_wrap_http_ex()
636 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
645 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
646 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
647 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
650 smart_str_appends(&req_buf, "Content-Type: application/x-www-form-urlencoded\r\n"); in php_stream_url_wrap_http_ex()
653 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
654 smart_str_appendl(&req_buf, Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
656 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
660 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()