summaryrefslogtreecommitdiff
path: root/src/HTTP_POST_multipart.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-05-09 19:14:26 +0000
committeruckelman <uckelman@nomic.net>2010-05-09 19:14:26 +0000
commitb31aa09aad360733c7b1141d52639208fcd1e8c3 (patch)
treea87b6b3f4cddc9084009e96652d8dcbe90f9242c /src/HTTP_POST_multipart.php
parent6f7c94fc64e980333d8f116125e89a3f43305b5a (diff)
Added dump() for debugging.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6830 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/HTTP_POST_multipart.php')
-rw-r--r--src/HTTP_POST_multipart.php5
1 files changed, 5 insertions, 0 deletions
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);