David Precious [Wed, 9 Mar 2016 10:31:42 +0000]
No need for the intermediate copy.
I had thought I needed to copy it first so the changes that the following code
make to the buffer won't be made to the raw body copy, but I'm not passing it by
reference to io_from_any() so it's already a copy, no need for two!
David Precious [Mon, 7 Mar 2016 23:06:36 +0000]
Return raw body for UrlEncoded requests.
This is for RT #111876:
https://rt.cpan.org/Public/Bug/Display.html?id=111876
We currently return a body filehandle for OctetStream requests, but not for
UrlEncoded requests, which causes surprises - for e.g. Dancer1 issue:
https://github.com/PerlDancer/Dancer/issues/1140
This change makes parsed UrlEncoded requests store the "raw" body (after parsing
out chunking etc) in $self->body, so the caller can get a filehandle for it just
like they would for an OctetStream request.
Tests updated to expect this new behaviour.
TODO: Decide if we need MultiPart to expose a raw body for consistency (would
anyone ever want the overall raw body for a MultiPart request?) and if so,
cobble together the request as it was (but not storing the form params part to
disk for security)
Karen Etheridge [Thu, 29 Jan 2015 18:34:07 +0000]
fix typo in synoposis (RT#100492)
Karen Etheridge [Thu, 29 Jan 2015 18:30:35 +0000]
add META.json to the build
Torsten Raudssus [Thu, 29 Jan 2015 03:51:47 +0000]
Fix for the fix...
Torsten Raudssus [Thu, 29 Jan 2015 03:48:33 +0000]
Fixed test which failed if Plack wasn't installed
Gianni Ceccarelli [Wed, 21 Jan 2015 17:13:00 +0000]
more comprehensive test for part_data
John Napiorkowski [Tue, 20 Jan 2015 20:05:31 +0000]
proposal to fix problem when we lose multipart meta info
Torsten Raudssus [Fri, 6 Dec 2013 15:07:02 +0000]
New changes, added complete git bundle for release
Torsten Raudssus [Fri, 6 Dec 2013 15:05:22 +0000]
Hups, wrong plugin name
Torsten Raudssus [Fri, 6 Dec 2013 15:04:23 +0000]
Removed version of dist.ini
Torsten Raudssus [Fri, 6 Dec 2013 15:04:01 +0000]
Updated changes file of the last releases, added new plugins
Torsten Raudssus [Fri, 6 Dec 2013 14:19:41 +0000]
Hups, forgot to set content length
Torsten Raudssus [Fri, 6 Dec 2013 14:05:32 +0000]
Added RT88342 related test (found parsing bug in that way), tighten some other tests
Torsten Raudssus [Fri, 6 Dec 2013 11:49:07 +0000]
Added .gitignore
Gareth Kirwan [Fri, 30 Aug 2013 13:01:46 +0000]
(RT87778) Fix typos.
Arthur Axel 'fREW' Schmidt [Mon, 22 Apr 2013 18:05:17 +0000]
update repository metadata
Torsten Raudssus [Wed, 3 Oct 2012 22:03:03 +0000]
Hups, wrong file in distribution
Torsten Raudssus [Wed, 3 Oct 2012 15:18:47 +0000]
Added patch of gbjk, released 1.16
Torsten Raudssus [Mon, 5 Dec 2011 02:59:02 +0000]
Updated version for release
Torsten Raudssus [Mon, 5 Dec 2011 02:55:43 +0000]
Added missing requirement
Torsten Raudssus [Fri, 4 Nov 2011 18:43:03 +0000]
Removed benchmark data and script for release
Torsten Raudssus [Sun, 20 Mar 2011 00:52:55 +0000]
Fixed the t/08 test
Torsten Raudssus [Tue, 26 Oct 2010 17:13:40 +0000]
Add version 1.11 of HTTP::Body with new param_order functionality
Also documented, also added to the tests.
Simon Elliott [Fri, 8 Oct 2010 14:51:49 +0000]
patch for 1.10
Dave Rolsky [Sun, 3 Oct 2010 15:19:39 +0000]
fix typo Changes
Simon Elliott [Thu, 19 Aug 2010 18:52:26 +0000]
1.08
Dave Rolsky [Sun, 6 Jun 2010 03:50:05 +0000]
Make sure we do not include a directory separator in the temp file suffix.
Note that this will not get the right answer if the extension actually has a
path separator character in it for some insane reason.
Dave Rolsky [Sat, 5 Jun 2010 17:11:57 +0000]
The temp file name now preserves the uploaded file's suffix.
Added tests and updated Changes.
Also fixed a typo in PAML.pm
Simon Elliott [Tue, 2 Mar 2010 23:03:19 +0000]
fix Xforms buffering check
Marcus Ramberg [Sun, 24 Jan 2010 19:41:17 +0000]
Prepare for new release
Marcus Ramberg [Sun, 24 Jan 2010 19:40:26 +0000]
Bingos says ignore this
Marcus Ramberg [Sun, 24 Jan 2010 19:38:41 +0000]
Uhm, still IO::File versions
Marcus Ramberg [Sun, 24 Jan 2010 19:37:45 +0000]
Add HTTP-Body deps
Marcus Ramberg [Sat, 9 Jan 2010 18:21:53 +0000]
Prepare to release 1.06
Christian Hansen [Sat, 9 Jan 2010 14:43:06 +0000]
Switched to Module::Install
s/ch@ngmedia.com/chansen@cpan.org/
Christian Hansen [Sat, 9 Jan 2010 14:17:56 +0000]
Dropped YAML, we now use PAML, "PAML Ain't Markup Language"
Andy Grundman [Thu, 7 May 2009 16:35:25 +0000]
Added cleanup flag to auto-delete temp files
Andy Grundman [Thu, 7 May 2009 15:41:40 +0000]
Fix multipart boundaries with commas
Andy Grundman [Mon, 1 Dec 2008 22:13:44 +0000]
HTTP::Body 1.05, removed useless use of eval/require in new()
Andy Grundman [Mon, 23 Jun 2008 19:41:32 +0000]
HTTP::Body 1.04, patch from jgoulah for tmpdir() accessor
Andy Grundman [Mon, 7 Apr 2008 12:17:40 +0000]
HTTP::Body 1.03, patch from ruoso to set body data for XForms
Andy Grundman [Wed, 27 Feb 2008 22:06:55 +0000]
HTTP::Body 1.02, fix urlencoded test on Windows
Andy Grundman [Sat, 23 Feb 2008 16:15:18 +0000]
HTTP::Body 1.01, fixed regex to restore performance of urlencoded parser, the previous version was about 3x slower
Andy Grundman [Sat, 23 Feb 2008 16:01:45 +0000]
HTTP::Body 1.00 release
Andy Grundman [Sat, 23 Feb 2008 15:59:12 +0000]
Prep for release
Andy Grundman [Sat, 23 Feb 2008 15:57:07 +0000]
HTTP::Body, patch from Daniel Ruoso to add XForms support
Andy Grundman [Sat, 23 Feb 2008 15:19:50 +0000]
HTTP::Body, fixed multipart test to properly clean up temp files
Andy Grundman [Sat, 23 Feb 2008 15:07:19 +0000]
HTTP::Body, Patch from Tom Heady to fix urlencoded parser to handle spaces after semicolons and equal signs in the value
Andy Grundman [Sat, 23 Feb 2008 14:53:13 +0000]
HTTP::Body, added support for chunked requests
Andy Grundman [Sat, 12 Jan 2008 15:55:48 +0000]
Fix typo in HTTP::Body docs
Andy Grundman [Sat, 11 Aug 2007 16:45:57 +0000]
Add tab test to all my modules
Andy Grundman [Sat, 31 Mar 2007 04:39:54 +0000]
HTTP::Body, tried using APR::Request for urlencoded parsing, but Perl is faster. Replaced tr/// with s/// which is faster.
Andy Grundman [Tue, 27 Mar 2007 18:32:30 +0000]
HTTP::Body 0.9, patches from Ton Voon to fix empty fields on multipart/form-data and filenames of '0'
Andy Grundman [Tue, 27 Mar 2007 17:57:58 +0000]
Moving released version of HTTP::Body back to trunk
Andy Grundman [Sat, 24 Mar 2007 03:47:33 +0000]
HTTP::Body - small performance tweaks to urlencoded parser
Andy Grundman [Sat, 24 Mar 2007 02:17:14 +0000]
HTTP::Body 0.8
Andy Grundman [Sat, 24 Mar 2007 00:27:26 +0000]
Bump HTTP::Body to 0.8, search.cpan took 0.7 even though I don't have permission
Andy Grundman [Fri, 23 Mar 2007 21:08:16 +0000]
Improve the HTTP::Body description a bit
Andy Grundman [Fri, 23 Mar 2007 20:56:52 +0000]
HTTP::Body - ignore all data beyond Content-Length. Fixes MSIE CRLF issue
Andy Grundman [Fri, 23 Mar 2007 17:41:47 +0000]
Bump trunk version of HTTP::Body to 0.8
Andy Grundman [Fri, 23 Mar 2007 17:39:37 +0000]
HTTP::Body 0.7, patch to support 0-length uploads
Ash Berlin [Fri, 23 Mar 2007 15:03:19 +0000]
Minimal pod, and removed req on YAML - tests will skip all if not found
Ash Berlin [Fri, 23 Mar 2007 14:23:10 +0000]
Empty file support (rt.cpan ticket #25392)
Yuval Kogman [Thu, 30 Mar 2006 13:06:33 +0000]
woremacx's file upload tempdir patch, applied to HTTP::Body
Christian Hansen [Fri, 3 Mar 2006 16:02:52 +0000]
First stab at refactoring HTTP::Body
Christian Hansen [Fri, 6 Jan 2006 11:57:22 +0000]
released 0.6
Christian Hansen [Fri, 6 Jan 2006 11:42:08 +0000]
updated changes
Sebastian Riedel [Fri, 6 Jan 2006 10:45:13 +0000]
Added tests for HB
Christian Hansen [Thu, 24 Nov 2005 22:35:55 +0000]
Fixed YAML prereq, reported by Jess Robinson
Christian Hansen [Tue, 22 Nov 2005 23:20:47 +0000]
Fixed buffer bug in HTTP::Body::OctetStream
Sebastian Riedel [Thu, 17 Nov 2005 03:57:06 +0000]
Updated HTTP::Body for PAR
Andy Grundman [Wed, 9 Nov 2005 06:00:06 +0000]
Bumped HTTP::Body to 0.4 so CPAN installs the right version
Andy Grundman [Fri, 28 Oct 2005 00:02:19 +0000]
Releasing HTTP::Body 0.03
Andy Grundman [Thu, 27 Oct 2005 19:49:24 +0000]
HTTP::Body, changed to version 0.03 since we it's got a major bug fix
Andy Grundman [Wed, 26 Oct 2005 18:57:28 +0000]
Ripped out List::Util first() because it leaks memory
Christian Hansen [Tue, 18 Oct 2005 17:02:15 +0000]
Added APR::Request to benchmark
Christian Hansen [Tue, 18 Oct 2005 16:59:12 +0000]
Added APR::Request to benchmark
Christian Hansen [Tue, 18 Oct 2005 11:25:16 +0000]
Added benchmark
Christian Hansen [Fri, 14 Oct 2005 21:04:27 +0000]
use $part->{name} instead of address
Christian Hansen [Wed, 12 Oct 2005 17:58:56 +0000]
Improved tests. Removed Path::Class dependency
Christian Hansen [Fri, 7 Oct 2005 20:07:11 +0000]
Added a BUG section and fixed some POD typos
Christian Hansen [Fri, 7 Oct 2005 19:28:59 +0000]
Fixed POD
Sebastian Riedel [Thu, 6 Oct 2005 23:23:12 +0000]
Released HTTP::Body 0.01
Andy Grundman [Fri, 16 Sep 2005 19:12:08 +0000]
Fixed typo boudrary -> boundary
Marcus Ramberg [Mon, 5 Sep 2005 22:06:00 +0000]
added manifest
Marcus Ramberg [Mon, 5 Sep 2005 22:02:15 +0000]
improved pod a little.
Christian Hansen [Sun, 4 Sep 2005 13:45:12 +0000]
Added SYNOPSIS
Christian Hansen [Sun, 4 Sep 2005 13:07:17 +0000]
Test Content-Length
Christian Hansen [Sun, 4 Sep 2005 12:55:56 +0000]
Added XXX-results.yml
Christian Hansen [Fri, 19 Aug 2005 14:38:08 +0000]
remove stringify
Sebastian Riedel [Tue, 16 Aug 2005 19:24:32 +0000]
Cleaned HTTP::Body a bit
Christian Hansen [Mon, 25 Jul 2005 17:33:44 +0000]
minor fixes
Christian Hansen [Mon, 25 Jul 2005 11:29:56 +0000]
namespace change
Marcus Ramberg [Mon, 25 Jul 2005 11:27:25 +0000]
for chnanen
Christian Hansen [Mon, 25 Jul 2005 10:09:25 +0000]
Fix regexp in urldecode
Christian Hansen [Tue, 19 Jul 2005 17:44:23 +0000]
added urlencoded data
Christian Hansen [Tue, 19 Jul 2005 17:43:38 +0000]
created HTTP::Body::Urlencoded
Christian Hansen [Tue, 19 Jul 2005 15:07:31 +0000]
minor refactoring, created HTTP::Body::Octetstream
Christian Hansen [Tue, 19 Jul 2005 13:51:47 +0000]
delete!