- http_parse_headers() now accepts a callback for handling of request/response lines
[m6w6/ext-http] / http_functions.c
index a0eb58b3b210caf2dfd7182fad62004e7c4fbf53..aeeea5b9eca8e35be5f30ab24fb08ce2e04e5f17 100644 (file)
@@ -999,21 +999,6 @@ PHP_FUNCTION(http_build_query)
 
 PHP_FUNCTION(http_test)
 {
-#define HTTP_MESSAGE_STR \
-       "GET / HTTP/1.1\r\n" \
-       "Content-Type: foo/bar\r\n" \
-       "Robots: Noindex,Nofollow\r\n" \
-       "\r\n" \
-       "Body Data!\n"
-#define HTTP_MESSAGE_LEN lenof(HTTP_MESSAGE_STR)
-       http_message *msg = http_message_parse(HTTP_MESSAGE_STR, HTTP_MESSAGE_LEN);
-       char *str;
-       size_t len;
-
-       http_message_tostring(msg, &str, &len);
-
-       RETVAL_STRINGL(str, len, 0);
-       http_message_free(msg);
 }
 
 /*