summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.h
diff options
context:
space:
mode:
authorShane Caraveo <shane@php.net>2002-07-07 23:03:43 +0000
committerShane Caraveo <shane@php.net>2002-07-07 23:03:43 +0000
commitf8875adaab9fe973ab798ead093e21972ed43a13 (patch)
treed5495bb982d966a5bb42afb20fb80338cccce1f4 /ext/soap/php_http.h
parenta6d815fb7c98c32a4180e30dfaca316cbeae8912 (diff)
downloadphp-git-f8875adaab9fe973ab798ead093e21972ed43a13.tar.gz
import php-soap library from sourceforge
Diffstat (limited to 'ext/soap/php_http.h')
-rw-r--r--ext/soap/php_http.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/soap/php_http.h b/ext/soap/php_http.h
new file mode 100644
index 0000000000..4e4fff7f4d
--- /dev/null
+++ b/ext/soap/php_http.h
@@ -0,0 +1,25 @@
+#ifndef PHP_HTTP_H
+#define PHP_HTTP_H
+
+void send_http_soap_request(zval *this_ptr, xmlDoc *doc, char *function_name, char *soapaction);
+void get_http_soap_response(zval *this_ptr, char **buffer, int *buffer_len);
+
+char *get_http_header_value(char *headers, char *type);
+int get_http_body(SOAP_STREAM socketd, char *headers, char **response, int *out_size);
+int get_http_headers(SOAP_STREAM socketd,char **response, int *out_size);
+
+#ifndef PHP_STREAMS
+#ifndef ZEND_WIN32
+# ifndef closesocket
+# define closesocket close
+# endif
+#endif
+
+#ifndef SOCK_CLOSE
+# define SOCK_CLOSE(s) shutdown(s, 0); closesocket(s)
+#endif
+
+SOCKET get_socket(char* host,int portno,int timeout);
+#endif
+
+#endif