Lines Matching refs:req_buf

140 	smart_str req_buf = {0};  in php_stream_url_wrap_http_ex()  local
368 smart_str_append(&req_buf, Z_STR_P(tmpzval)); in php_stream_url_wrap_http_ex()
369 smart_str_appendc(&req_buf, ' '); in php_stream_url_wrap_http_ex()
375 smart_str_appends(&req_buf, "GET "); in php_stream_url_wrap_http_ex()
386 smart_str_appends(&req_buf, path); in php_stream_url_wrap_http_ex()
392 smart_str_appends(&req_buf, resource->path); in php_stream_url_wrap_http_ex()
394 smart_str_appendc(&req_buf, '/'); in php_stream_url_wrap_http_ex()
399 smart_str_appendc(&req_buf, '?'); in php_stream_url_wrap_http_ex()
400 smart_str_appends(&req_buf, resource->query); in php_stream_url_wrap_http_ex()
409 smart_str_appends(&req_buf, " HTTP/"); in php_stream_url_wrap_http_ex()
410 smart_str_appends(&req_buf, protocol_version); in php_stream_url_wrap_http_ex()
411 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
414 smart_str_appends(&req_buf, " HTTP/1.0\r\n"); in php_stream_url_wrap_http_ex()
547 smart_str_appends(&req_buf, "Authorization: Basic "); in php_stream_url_wrap_http_ex()
548 smart_str_appends(&req_buf, ZSTR_VAL(stmp)); in php_stream_url_wrap_http_ex()
549 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
559 smart_str_appends(&req_buf, "From: "); in php_stream_url_wrap_http_ex()
560 smart_str_appends(&req_buf, FG(from_address)); in php_stream_url_wrap_http_ex()
561 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
566 smart_str_appends(&req_buf, "Host: "); in php_stream_url_wrap_http_ex()
567 smart_str_appends(&req_buf, resource->host); in php_stream_url_wrap_http_ex()
570 smart_str_appendc(&req_buf, ':'); in php_stream_url_wrap_http_ex()
571 smart_str_append_unsigned(&req_buf, resource->port); in php_stream_url_wrap_http_ex()
573 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
583 smart_str_appends(&req_buf, "Connection: close\r\n"); in php_stream_url_wrap_http_ex()
606 smart_str_appendl(&req_buf, ua, ua_len); in php_stream_url_wrap_http_ex()
625 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
626 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
627 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
631 smart_str_appends(&req_buf, user_headers); in php_stream_url_wrap_http_ex()
632 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
641 smart_str_appends(&req_buf, "Content-Length: "); in php_stream_url_wrap_http_ex()
642 smart_str_append_unsigned(&req_buf, Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
643 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
646 smart_str_appends(&req_buf, "Content-Type: application/x-www-form-urlencoded\r\n"); in php_stream_url_wrap_http_ex()
649 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
650 smart_str_appendl(&req_buf, Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval)); in php_stream_url_wrap_http_ex()
652 smart_str_appends(&req_buf, "\r\n"); in php_stream_url_wrap_http_ex()
656 php_stream_write(stream, ZSTR_VAL(req_buf.s), ZSTR_LEN(req_buf.s)); in php_stream_url_wrap_http_ex()
935 smart_str_free(&req_buf); in php_stream_url_wrap_http_ex()