diff options
-rw-r--r-- | src/HTTP_POST_multipart.php | 5 |
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); |