8 years agoNo need for the intermediate copy. bigpresh/return_request_body_for_all_types
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!

8 years agoReturn raw body for UrlEncoded requests.
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)

9 years agofix typo in synoposis (RT#100492)
Karen Etheridge [Thu, 29 Jan 2015 18:34:07 +0000]
fix typo in synoposis (RT#100492)

9 years agoadd META.json to the build
Karen Etheridge [Thu, 29 Jan 2015 18:30:35 +0000]
add META.json to the build

9 years agoFix for the fix... v1.22
Torsten Raudssus [Thu, 29 Jan 2015 03:51:47 +0000]
Fix for the fix...

9 years agoFixed test which failed if Plack wasn't installed v1.21
Torsten Raudssus [Thu, 29 Jan 2015 03:48:33 +0000]
Fixed test which failed if Plack wasn't installed

9 years agomore comprehensive test for part_data v1.20
Gianni Ceccarelli [Wed, 21 Jan 2015 17:13:00 +0000]
more comprehensive test for part_data

9 years agoproposal to fix problem when we lose multipart meta info
John Napiorkowski [Tue, 20 Jan 2015 20:05:31 +0000]
proposal to fix problem when we lose multipart meta info

10 years agoNew changes, added complete git bundle for release v1.19
Torsten Raudssus [Fri, 6 Dec 2013 15:07:02 +0000]
New changes, added complete git bundle for release

10 years agoHups, wrong plugin name
Torsten Raudssus [Fri, 6 Dec 2013 15:05:22 +0000]
Hups, wrong plugin name

10 years agoRemoved version of dist.ini
Torsten Raudssus [Fri, 6 Dec 2013 15:04:23 +0000]
Removed version of dist.ini

10 years agoUpdated changes file of the last releases, added new plugins
Torsten Raudssus [Fri, 6 Dec 2013 15:04:01 +0000]
Updated changes file of the last releases, added new plugins

10 years agoHups, forgot to set content length
Torsten Raudssus [Fri, 6 Dec 2013 14:19:41 +0000]
Hups, forgot to set content length

10 years agoAdded RT88342 related test (found parsing bug in that way), tighten some other tests
Torsten Raudssus [Fri, 6 Dec 2013 14:05:32 +0000]
Added RT88342 related test (found parsing bug in that way), tighten some other tests

10 years agoAdded .gitignore
Torsten Raudssus [Fri, 6 Dec 2013 11:49:07 +0000]
Added .gitignore

10 years ago(RT87778) Fix typos.
Gareth Kirwan [Fri, 30 Aug 2013 13:01:46 +0000]
(RT87778) Fix typos.

11 years agoupdate repository metadata
Arthur Axel 'fREW' Schmidt [Mon, 22 Apr 2013 18:05:17 +0000]
update repository metadata

11 years agoHups, wrong file in distribution 1.17
Torsten Raudssus [Wed, 3 Oct 2012 22:03:03 +0000]
Hups, wrong file in distribution

11 years agoAdded patch of gbjk, released 1.16 v1.16
Torsten Raudssus [Wed, 3 Oct 2012 15:18:47 +0000]
Added patch of gbjk, released 1.16

12 years agoUpdated version for release v1.15
Torsten Raudssus [Mon, 5 Dec 2011 02:59:02 +0000]
Updated version for release

12 years agoAdded missing requirement
Torsten Raudssus [Mon, 5 Dec 2011 02:55:43 +0000]
Added missing requirement

12 years agoRemoved benchmark data and script for release v1.14
Torsten Raudssus [Fri, 4 Nov 2011 18:43:03 +0000]
Removed benchmark data and script for release

13 years agoFixed the t/08 test v1.12
Torsten Raudssus [Sun, 20 Mar 2011 00:52:55 +0000]
Fixed the t/08 test

13 years agoAdd version 1.11 of HTTP::Body with new param_order functionality v1.11
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.

13 years agopatch for 1.10 v1.10
Simon Elliott [Fri, 8 Oct 2010 14:51:49 +0000]
patch for 1.10

13 years agofix typo Changes
Dave Rolsky [Sun, 3 Oct 2010 15:19:39 +0000]
fix typo Changes

13 years ago1.08 v1.08
Simon Elliott [Thu, 19 Aug 2010 18:52:26 +0000]
1.08

13 years agoMake sure we do not include a directory separator in the temp file suffix.
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.

13 years agoThe temp file name now preserves the uploaded file's suffix.
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

14 years agofix Xforms buffering check
Simon Elliott [Tue, 2 Mar 2010 23:03:19 +0000]
fix Xforms buffering check

14 years agoPrepare for new release v1.07
Marcus Ramberg [Sun, 24 Jan 2010 19:41:17 +0000]
Prepare for new release

14 years agoBingos says ignore this
Marcus Ramberg [Sun, 24 Jan 2010 19:40:26 +0000]
Bingos says ignore this

14 years agoUhm, still IO::File versions
Marcus Ramberg [Sun, 24 Jan 2010 19:38:41 +0000]
Uhm, still IO::File versions

14 years agoAdd HTTP-Body deps
Marcus Ramberg [Sun, 24 Jan 2010 19:37:45 +0000]
Add HTTP-Body deps

14 years agoPrepare to release 1.06 v1.06
Marcus Ramberg [Sat, 9 Jan 2010 18:21:53 +0000]
Prepare to release 1.06

14 years agoSwitched to Module::Install
Christian Hansen [Sat, 9 Jan 2010 14:43:06 +0000]
Switched to Module::Install
s/ch@ngmedia.com/chansen@cpan.org/

14 years agoDropped YAML, we now use PAML, "PAML Ain't Markup Language"
Christian Hansen [Sat, 9 Jan 2010 14:17:56 +0000]
Dropped YAML, we now use PAML, "PAML Ain't Markup Language"

14 years agoAdded cleanup flag to auto-delete temp files
Andy Grundman [Thu, 7 May 2009 16:35:25 +0000]
Added cleanup flag to auto-delete temp files

14 years agoFix multipart boundaries with commas
Andy Grundman [Thu, 7 May 2009 15:41:40 +0000]
Fix multipart boundaries with commas

15 years agoHTTP::Body 1.05, removed useless use of eval/require in new() v1.05
Andy Grundman [Mon, 1 Dec 2008 22:13:44 +0000]
HTTP::Body 1.05, removed useless use of eval/require in new()

15 years agoHTTP::Body 1.04, patch from jgoulah for tmpdir() accessor v1.04
Andy Grundman [Mon, 23 Jun 2008 19:41:32 +0000]
HTTP::Body 1.04, patch from jgoulah for tmpdir() accessor

16 years agoHTTP::Body 1.03, patch from ruoso to set body data for XForms v1.03
Andy Grundman [Mon, 7 Apr 2008 12:17:40 +0000]
HTTP::Body 1.03, patch from ruoso to set body data for XForms

16 years agoHTTP::Body 1.02, fix urlencoded test on Windows v1.02
Andy Grundman [Wed, 27 Feb 2008 22:06:55 +0000]
HTTP::Body 1.02, fix urlencoded test on Windows

16 years agoHTTP::Body 1.01, fixed regex to restore performance of urlencoded parser, the previou... v1.01
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

16 years agoHTTP::Body 1.00 release v1.00
Andy Grundman [Sat, 23 Feb 2008 16:01:45 +0000]
HTTP::Body 1.00 release

16 years agoPrep for release
Andy Grundman [Sat, 23 Feb 2008 15:59:12 +0000]
Prep for release

16 years agoHTTP::Body, patch from Daniel Ruoso to add XForms support
Andy Grundman [Sat, 23 Feb 2008 15:57:07 +0000]
HTTP::Body, patch from Daniel Ruoso to add XForms support

16 years agoHTTP::Body, fixed multipart test to properly clean up temp files
Andy Grundman [Sat, 23 Feb 2008 15:19:50 +0000]
HTTP::Body, fixed multipart test to properly clean up temp files

16 years agoHTTP::Body, Patch from Tom Heady to fix urlencoded parser to handle spaces after...
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

16 years agoHTTP::Body, added support for chunked requests
Andy Grundman [Sat, 23 Feb 2008 14:53:13 +0000]
HTTP::Body, added support for chunked requests

16 years agoFix typo in HTTP::Body docs
Andy Grundman [Sat, 12 Jan 2008 15:55:48 +0000]
Fix typo in HTTP::Body docs

16 years agoAdd tab test to all my modules
Andy Grundman [Sat, 11 Aug 2007 16:45:57 +0000]
Add tab test to all my modules

17 years agoHTTP::Body, tried using APR::Request for urlencoded parsing, but Perl is faster....
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.

17 years agoHTTP::Body 0.9, patches from Ton Voon to fix empty fields on multipart/form-data... v0.9
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'

17 years agoMoving released version of HTTP::Body back to trunk
Andy Grundman [Tue, 27 Mar 2007 17:57:58 +0000]
Moving released version of HTTP::Body back to trunk

17 years agoHTTP::Body - small performance tweaks to urlencoded parser
Andy Grundman [Sat, 24 Mar 2007 03:47:33 +0000]
HTTP::Body - small performance tweaks to urlencoded parser

17 years agoHTTP::Body 0.8 v0.8
Andy Grundman [Sat, 24 Mar 2007 02:17:14 +0000]
HTTP::Body 0.8

17 years agoBump HTTP::Body to 0.8, search.cpan took 0.7 even though I don't have permission
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

17 years agoImprove the HTTP::Body description a bit
Andy Grundman [Fri, 23 Mar 2007 21:08:16 +0000]
Improve the HTTP::Body description a bit

17 years agoHTTP::Body - ignore all data beyond Content-Length. Fixes MSIE CRLF issue
Andy Grundman [Fri, 23 Mar 2007 20:56:52 +0000]
HTTP::Body - ignore all data beyond Content-Length.  Fixes MSIE CRLF issue

17 years agoBump trunk version of HTTP::Body to 0.8
Andy Grundman [Fri, 23 Mar 2007 17:41:47 +0000]
Bump trunk version of HTTP::Body to 0.8

17 years agoHTTP::Body 0.7, patch to support 0-length uploads v0.7
Andy Grundman [Fri, 23 Mar 2007 17:39:37 +0000]
HTTP::Body 0.7, patch to support 0-length uploads

17 years agoMinimal pod, and removed req on YAML - tests will skip all if not found
Ash Berlin [Fri, 23 Mar 2007 15:03:19 +0000]
Minimal pod, and removed req on YAML - tests will skip all if not found

17 years agoEmpty file support (rt.cpan ticket #25392)
Ash Berlin [Fri, 23 Mar 2007 14:23:10 +0000]
Empty file support (rt.cpan ticket #25392)

18 years agoworemacx's file upload tempdir patch, applied to HTTP::Body
Yuval Kogman [Thu, 30 Mar 2006 13:06:33 +0000]
woremacx's file upload tempdir patch, applied to HTTP::Body

18 years agoFirst stab at refactoring HTTP::Body
Christian Hansen [Fri, 3 Mar 2006 16:02:52 +0000]
First stab at refactoring HTTP::Body

18 years agoreleased 0.6 v0.6
Christian Hansen [Fri, 6 Jan 2006 11:57:22 +0000]
released 0.6

18 years agoupdated changes
Christian Hansen [Fri, 6 Jan 2006 11:42:08 +0000]
updated changes

18 years agoAdded tests for HB
Sebastian Riedel [Fri, 6 Jan 2006 10:45:13 +0000]
Added tests for HB

18 years agoFixed YAML prereq, reported by Jess Robinson
Christian Hansen [Thu, 24 Nov 2005 22:35:55 +0000]
Fixed YAML prereq, reported by Jess Robinson

18 years agoFixed buffer bug in HTTP::Body::OctetStream
Christian Hansen [Tue, 22 Nov 2005 23:20:47 +0000]
Fixed buffer bug in HTTP::Body::OctetStream

18 years agoUpdated HTTP::Body for PAR
Sebastian Riedel [Thu, 17 Nov 2005 03:57:06 +0000]
Updated HTTP::Body for PAR

18 years agoBumped HTTP::Body to 0.4 so CPAN installs the right version v0.4
Andy Grundman [Wed, 9 Nov 2005 06:00:06 +0000]
Bumped HTTP::Body to 0.4 so CPAN installs the right version

18 years agoReleasing HTTP::Body 0.03 v0.03
Andy Grundman [Fri, 28 Oct 2005 00:02:19 +0000]
Releasing HTTP::Body 0.03

18 years agoHTTP::Body, changed to version 0.03 since we it's got a major bug fix
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

18 years agoRipped out List::Util first() because it leaks memory
Andy Grundman [Wed, 26 Oct 2005 18:57:28 +0000]
Ripped out List::Util first() because it leaks memory

18 years agoAdded APR::Request to benchmark
Christian Hansen [Tue, 18 Oct 2005 17:02:15 +0000]
Added APR::Request to benchmark

18 years agoAdded APR::Request to benchmark
Christian Hansen [Tue, 18 Oct 2005 16:59:12 +0000]
Added APR::Request to benchmark

18 years agoAdded benchmark
Christian Hansen [Tue, 18 Oct 2005 11:25:16 +0000]
Added benchmark

18 years agouse $part->{name} instead of address
Christian Hansen [Fri, 14 Oct 2005 21:04:27 +0000]
use $part->{name} instead of address

18 years agoImproved tests. Removed Path::Class dependency
Christian Hansen [Wed, 12 Oct 2005 17:58:56 +0000]
Improved tests. Removed Path::Class dependency

18 years agoAdded a BUG section and fixed some POD typos
Christian Hansen [Fri, 7 Oct 2005 20:07:11 +0000]
Added a BUG section and fixed some POD typos

18 years agoFixed POD
Christian Hansen [Fri, 7 Oct 2005 19:28:59 +0000]
Fixed POD

18 years agoReleased HTTP::Body 0.01 v0.01
Sebastian Riedel [Thu, 6 Oct 2005 23:23:12 +0000]
Released HTTP::Body 0.01

18 years agoFixed typo boudrary -> boundary
Andy Grundman [Fri, 16 Sep 2005 19:12:08 +0000]
Fixed typo boudrary -> boundary

18 years agoadded manifest
Marcus Ramberg [Mon, 5 Sep 2005 22:06:00 +0000]
added manifest

18 years agoimproved pod a little.
Marcus Ramberg [Mon, 5 Sep 2005 22:02:15 +0000]
improved pod a little.

18 years agoAdded SYNOPSIS
Christian Hansen [Sun, 4 Sep 2005 13:45:12 +0000]
Added SYNOPSIS

18 years agoTest Content-Length
Christian Hansen [Sun, 4 Sep 2005 13:07:17 +0000]
Test Content-Length

18 years agoAdded XXX-results.yml
Christian Hansen [Sun, 4 Sep 2005 12:55:56 +0000]
Added XXX-results.yml

18 years agoremove stringify
Christian Hansen [Fri, 19 Aug 2005 14:38:08 +0000]
remove stringify

18 years agoCleaned HTTP::Body a bit
Sebastian Riedel [Tue, 16 Aug 2005 19:24:32 +0000]
Cleaned HTTP::Body a bit

18 years agominor fixes
Christian Hansen [Mon, 25 Jul 2005 17:33:44 +0000]
minor fixes

18 years agonamespace change
Christian Hansen [Mon, 25 Jul 2005 11:29:56 +0000]
namespace change

18 years agofor chnanen
Marcus Ramberg [Mon, 25 Jul 2005 11:27:25 +0000]
for chnanen

18 years agoFix regexp in urldecode
Christian Hansen [Mon, 25 Jul 2005 10:09:25 +0000]
Fix regexp in urldecode

18 years agoadded urlencoded data
Christian Hansen [Tue, 19 Jul 2005 17:44:23 +0000]
added urlencoded data

18 years agocreated HTTP::Body::Urlencoded
Christian Hansen [Tue, 19 Jul 2005 17:43:38 +0000]
created HTTP::Body::Urlencoded

18 years agominor refactoring, created HTTP::Body::Octetstream
Christian Hansen [Tue, 19 Jul 2005 15:07:31 +0000]
minor refactoring, created HTTP::Body::Octetstream

18 years agodelete!
Christian Hansen [Tue, 19 Jul 2005 13:51:47 +0000]
delete!