- TSRMLS_FETCH();
-
- phpstr_append(&HTTP_G(curlbuf), buf, len *= n);
- return len;
-}
-/* }}} */
-
-/* {{{ static size_t http_curl_hdrs_callback(char *, size_t, size_t, void *) */
-static size_t http_curl_hdrs_callback(char *buf, size_t len, size_t n, void *s)
-{
- TSRMLS_FETCH();
-
- /* discard previous headers */
- if (HTTP_G(curlbuf).used && (!strncmp(buf, "HTTP/1.", sizeof("HTTP/1.") - 1))) {
- phpstr_free(&HTTP_G(curlbuf));
- }
-
- phpstr_append(&HTTP_G(curlbuf), buf, len *= n);
- return len;