Lines Matching refs:req_buf
147 smart_str req_buf = {0}; in php_stream_url_wrap_http_ex() local
376 smart_str_append(&req_buf, Z_STR_P(tmpzval)); in php_stream_url_wrap_http_ex()
377 smart_str_appendc(&req_buf, ' '); in php_stream_url_wrap_http_ex()
383 smart_str_appends(&req_buf, "GET "); in php_stream_url_wrap_http_ex()
394 smart_str_appends(&req_buf, path); in php_stream_url_wrap_http_ex()
400 smart_str_appends(&req_buf, ZSTR_VAL(resource->path)); in php_stream_url_wrap_http_ex()
402 smart_str_appendc(&req_buf, '/'); in php_stream_url_wrap_http_ex()
407 smart_str_appendc(&req_buf, '?'); in php_stream_url_wrap_http_ex()
408 smart_str_appends(&req_buf, ZSTR_VAL(resource->query)); in php_stream_url_wrap_http_ex()
417 smart_str_appends(&req_buf, " HTTP/"); in php_stream_url_wrap_http_ex()
418 smart_str_appends(&req_buf, protocol_version); in php_stream_url_wrap_http_ex()
419 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
422 smart_str_appends(&req_buf, " HTTP/1.1\r\n"); in php_stream_url_wrap_http_ex()
541 smart_str_appends(&req_buf, "Authorization: Basic "); in php_stream_url_wrap_http_ex()
542 smart_str_appends(&req_buf, ZSTR_VAL(stmp)); in php_stream_url_wrap_http_ex()
543 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
553 smart_str_appends(&req_buf, "From: "); in php_stream_url_wrap_http_ex()
554 smart_str_appends(&req_buf, FG(from_address)); in php_stream_url_wrap_http_ex()
555 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
560 smart_str_appends(&req_buf, "Host: "); in php_stream_url_wrap_http_ex()
561 smart_str_appends(&req_buf, ZSTR_VAL(resource->host)); in php_stream_url_wrap_http_ex()
564 smart_str_appendc(&req_buf, ':'); in php_stream_url_wrap_http_ex()
565 smart_str_append_unsigned(&req_buf, resource->port); in php_stream_url_wrap_http_ex()
567 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
577 smart_str_appends(&req_buf, "Connection: close\r\n"); in php_stream_url_wrap_http_ex()
600 smart_str_appendl(&req_buf, ua, ua_len); in php_stream_url_wrap_http_ex()
619 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
620 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
621 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
625 smart_str_appends(&req_buf, user_headers); in php_stream_url_wrap_http_ex()
626 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
635 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
636 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
637 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
640 smart_str_appends(&req_buf, "Content-Type: application/x-www-form-urlencoded\r\n"); in php_stream_url_wrap_http_ex()
643 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
644 smart_str_appendl(&req_buf, Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
646 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
650 php_stream_write(stream, ZSTR_VAL(req_buf.s), ZSTR_LEN(req_buf.s)); in php_stream_url_wrap_http_ex()
929 smart_str_free(&req_buf); in php_stream_url_wrap_http_ex()