From b31aa09aad360733c7b1141d52639208fcd1e8c3 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 9 May 2010 19:14:26 +0000 Subject: Added dump() for debugging. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6830 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/HTTP_POST_multipart.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/HTTP_POST_multipart.php') diff --git a/src/HTTP_POST_multipart.php b/src/HTTP_POST_multipart.php index 5fb806b..64689bf 100644 --- a/src/HTTP_POST_multipart.php +++ b/src/HTTP_POST_multipart.php @@ -121,6 +121,11 @@ class HTTP_POST_multipart { return array($boundary, $bd . implode($bd, $postParts) . $final_bd); } + public function dump() { + list(/* skip */, $content) = buildPost($this->_parts); + return $content; + } + public function post($url) { list($boundary, $content) = buildPost($this->_parts); -- cgit v1.2.3