Accepts an optional third string parameter containing the raw request body.<br />
See http_get() for a full list of available options.</p>
<p>Returns the HTTP response(s) as string on success, or FALSE on failure.</p>
+<h2 id="http_request_body_encode">string http_request_body_encode(array fields, array files)</h2>
+<p>Generate x-www-form-urlencoded resp. form-data encoded request body.</p>
+<p>Returns encoded string on success, or FALSE on failure.</p>
<h2 id="http_request_method_register">int http_request_method_register(string method)</h2>
<p>Register a custom request method.</p>
<p>Expects a string parameter containing the request method name to register.</p>
</li>
<li><a href="#http_request">http_request</a>
</li>
+<li><a href="#http_request_body_encode">http_request_body_encode</a>
+</li>
<li><a href="#http_request_method_register">http_request_method_register</a>
</li>
<li><a href="#http_request_method_unregister">http_request_method_unregister</a>
</li>
</ul>
</div>
- <p><b>Generated at: Thu, 06 Apr 2006 15:55:09 +0200</b></p>
+ <p><b>Generated at: Thu, 13 Apr 2006 17:25:58 +0200</b></p>
</body>
</html>
}
/* }}} */
-/* {{{ proto string http_request_body_encode(array fields, array files)
- *
- * Generate x-www-form-urlencoded resp. form-data encoded request body.
- *
- * Returns encoded string on success, or FALSE on failure.
- */
static char *file_get_contents(char *file, size_t *len TSRMLS_DC)
{
php_stream *s = NULL;
size_t length;
};
CURLcode Curl_getFormData(struct FormData **, struct curl_httppost *post, curl_off_t *size);
+
+/* {{{ proto string http_request_body_encode(array fields, array files)
+ *
+ * Generate x-www-form-urlencoded resp. form-data encoded request body.
+ *
+ * Returns encoded string on success, or FALSE on failure.
+ */
PHP_FUNCTION(http_request_body_encode)
{
zval *fields = NULL, *files = NULL;
</maintainer>
</maintainers>
<release>
- <version>1.0.0RC2</version>
- <date>2006-03-28</date>
+ <version>1.0.0RC3</version>
+ <date>2006-04-13</date>
<license>BSD, revised</license>
<state>beta</state>
- <notes>* Fixed Bug #7192: Build against libcurl >= 7.15.2 fails
-* Fixed access of super globals
-* Fixed sending userspace streams
-* Fixed too aggressive caching behaviour of HttpResponse
+ <notes>+ Added missing http_request() function
++ Added missing http_request_body_encode() function
+- Improved performance of the message and header parser
+- Disallow $HttpMessage->prepend($HttpMessage) causing infinite recursion
+* Fixed internal http_parse_headers() always returning success
+* Fixed missing "parentMessage" entry in print_r($HttpMessageObject)
+* Fixed possible crash if the response does not contain a status message
</notes>
<deps>
<dep type="php" rel="ge" version="4.3"/>
#ifndef PHP_EXT_HTTP_H
#define PHP_EXT_HTTP_H
-#define PHP_EXT_HTTP_VERSION "1.0.0RC3-dev"
+#define PHP_EXT_HTTP_VERSION "1.0.0RC3"
#ifdef HAVE_CONFIG_H
# include "config.h"
--TEST--
-HttpMessage implmenets Serializable, Countable
+HttpMessage implements Serializable, Countable
--SKIPIF--
<?php
include 'skip.inc';
}
["body:protected"]=>
string(0) ""
+ ["parentMessage:protected"]=>
+ NULL
}
int(1)
Done
</methodCall>
"
"
+ ["parentMessage:protected"]=>
+ NULL
}
object(HttpMessage)#%d (%d) {
["type:protected"]=>
</methodCall>
"
"
+ ["parentMessage:protected"]=>
+ NULL
}
object(HttpMessage)#%d (%d) {
["type:protected"]=>
</methodCall>
"
"
+ ["parentMessage:protected"]=>
+ NULL
}
Done