- remove tests/README.txt as it is no longer true
- add parse_message test
#include "php_http_send_api.h"
#include "php_http_date_api.h"
+#ifdef HAVE_LIBMHASH
+# include <mhash.h>
+#endif
+
ZEND_EXTERN_MODULE_GLOBALS(http);
/* {{{ char *http_etag(void *, size_t, http_send_mode) */
# endif
# include <curl/curl.h>
#endif
-#include "ext/standard/md5.h"
-#include "ext/standard/sha1.h"
+
#include "phpstr/phpstr.h"
extern zend_module_entry http_module_entry;
#ifndef PHP_HTTP_CACHE_API_H
#define PHP_HTTP_CACHE_API_H
+#include "zend_ini.h"
+
+#include "ext/standard/md5.h"
+#include "ext/standard/sha1.h"
+
#include "php_http_std_defs.h"
#include "php_http.h"
#include "php_http_api.h"
#include "php_http_send_api.h"
-#include "zend_ini.h"
-
#ifdef HAVE_LIBMHASH
# include <mhash.h>
#endif
+++ /dev/null
-Most of this tests fail with the standard run-tests script.
--- /dev/null
+--TEST--
+http_parse_message()
+--SKIPIF--
+include 'skip.inc';
+checkuri('www.google.com');
+--FILE--
+<?php
+echo "-TEST\n";
+echo http_parse_message(http_get('http://www.google.com'))->body;
+echo "Done\n";
+--EXPECTF--
+%sTEST
+<HTML>%sThe document has moved%s</HTML>
+Done