- class renamed from HTTPi to Http
[m6w6/ext-http] / php_http.h
index fd925f69416975c0650484404ace860572f2da58..95624e5e2ef37ffa11ef402ad961ea9bbd96d4b5 100644 (file)
@@ -23,6 +23,7 @@
 /* make compile on Win32 */
 #include "php_streams.h"
 #include "ext/standard/md5.h"
+#include "phpstr/phpstr.h"
 
 extern zend_module_entry http_module_entry;
 #define phpext_http_ptr &http_module_entry
@@ -42,8 +43,6 @@ typedef struct {
 
 #ifdef HTTP_HAVE_CURL
 
-#include "phpstr/phpstr.h"
-
 #ifdef PHP_WIN32
 #      include <winsock2.h>
 #endif
@@ -56,7 +55,7 @@ typedef struct {
 } http_request_object;
 
 typedef enum {
-       HTTP_GET,
+       HTTP_GET = 1,
        HTTP_HEAD,
        HTTP_POST,
 } http_request_method;