HTTP-Body-1.23000755001750001750 014601703275 12571 5ustar00gettygetty000000000000README100644001750001750 53614601703275 13516 0ustar00gettygetty000000000000HTTP-Body-1.23This archive contains the distribution HTTP-Body, version 1.23: HTTP Body Parser This software is copyright (c) 2024 by Christian Hansen. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. This README file was generated by Dist::Zilla::Plugin::Readme v6.030. Changes100644001750001750 1052614601703275 14171 0ustar00gettygetty000000000000HTTP-Body-1.23This file documents the revision history for Perl extension HTTP::Body. 1.23 2024-03-30 04:27:56+01:00 Europe/Berlin 1.22 2015-01-29 04:51:51+01:00 Europe/Berlin - Fix for the fix..... don't ask 1.21 2015-01-29 04:48:58+01:00 Europe/Berlin - Fix for failing test if Plack is not installed 1.20 2015-01-28 16:20:59+01:00 Europe/Berlin -new method 'part_data' which preserves multipart meta information just in cause you have a form upload with unexpected charsets, etc. 1.19 - Release for cleanup of dzil 1.18 2013-12-06 10:05:33 America/New_York - Added configurable basename regexp, test added with fixed regexp for next release (Torsten Raudssus [GETTY]) - Added .gitignore 1.16 Wed, 3 Oct 2012 15:18:47 CET - Added support for application/json (Gareth Kirwan [GBJK]) 1.15 Mon, 5 Dec 2011 02:59:02 CET - Added missing requirement (Torsten Raudssus [GETTY]) 1.14 Tue 26 Oct 2010 19:42:00 CET - removed benchmark test data and benchmark script for release (Torsten Raudssus [GETTY]) 1.12 Sat 19 Mar 2011 19:05:17 CET - Fixed the t/08 test 1.11 Tue 26 Oct 2010 14:10:00 UTC - Added param_order capability (Torsten Raudssus [GETTY]) 1.10 Fri 8 Oct 2010 15:50:55 UTC - Patch for test failure ( thanks KENTNL/MITHALDU! ) 1.09 Thu 19 Aug 2010 19:08:55 UTC - remove blib for PAUSE indexing. 1.08 Thu 19 Aug 2010 18:08:42 UTC - Temp files now preserve the suffix of the uploaded file. This makes it possible to feed the file directly into a mime-type-determining module that may rely on this suffix as part of its heuristic. (Dave Rolsky) - Fix for RT#54443 Xforms buffering incorrectly (Simon Elliott) - Move to Dist::Zilla 1.07 2010-01-24 20:40:00 - Up IO::File dependency. 1.06 2010-01-09 19:21:00 - Added $body->cleanup(1) flag to enable auto-deletion of temporary files during DESTROY. (Vany Serezhkin) - Fixed parsing of multipart bodies with boundaries that contain commas. (Tomas Doran, http://rt.cpan.org/Public/Bug/Display.html?id=41407) - Dropped YAML, we now use Perl as a serialization format in our tests. We call this PAML ;) 1.05 2008-12-01 17:15:00 - Removed useless eval + require in new(). 1.04 2008-06-23 16:00:00 - Added tmpdir() accessor to specify an alternate directory for temp files. (jgoulah) 1.03 2008-04-07 08:20:00 - Set body value for XForms data. (Daniel Ruoso) 1.02 2008-02-27 17:30:00 - Fixed issue with urlencoded test on Windows. 1.01 2008-02-23 11:30:00 - Fixed performance issue with urlencoded regex. 1.00 2008-02-23 11:00:00 - Added support for chunked requests if no $length value is passed to new(). - Added support for XForms submissions. (Daniel Ruoso) - Fixed urlencoded parser to handle spaces after semicolons and equal signs in the value. (Tom Heady, http://rt.cpan.org/Ticket/Display.html?id=31055) - Fixed multipart test to properly clean up temporary files. 0.9 2007-03-27 14:00:00 - Fixed bug where empty fields in multipart/form-data were ignored. (Ton Voon) - Fixed bug where an uploaded file with the name "0" was ignored. (Ton Voon) - Small performance improvements to urlencoded parser. 0.8 2007-03-23 18:40:00 - Some browsers such as MSIE send extra data after the body content. We now properly ignore anything beyond Content-Length. 0.7 2007-03-23 10:00:00 - Fixed parsing an empty (zero-length) file using multipart. http://rt.cpan.org/NoAuth/Bug.html?id=25392 0.6 2006-01-06 00:00:00 - Fixed buffer bug in OctetStream, reported by Daisuke Murase . - Fixed YAML prereq, reported by Jess Robinson - Added tests, Ben Trott . 0.5 2005-11-17 00:00:00 - Updated for PAR compatibility 0.4 2005-11-09 01:00:00 - Version bump to 0.4 so CPAN.pm installs the right version. 0.03 2005-10-27 20:00:00 - removed use of List::Util first due to memory leakage. http://rt.cpan.org/NoAuth/Bug.html?id=13891 0.2 2005-10-07 - fixed POD 0.01 2005-09-07 - first release LICENSE100644001750001750 4366414601703275 13714 0ustar00gettygetty000000000000HTTP-Body-1.23This software is copyright (c) 2024 by Christian Hansen. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2024 by Christian Hansen. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2024 by Christian Hansen. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End dist.ini100644001750001750 175614601703275 14327 0ustar00gettygetty000000000000HTTP-Body-1.23name = HTTP-Body author = Christian Hansen, C author = Sebastian Riedel, C author = Andy Grundman, C author = Torsten Raudssus, C abstract = HTTP Body Parser license = Perl_5 copyright_holder = Christian Hansen [@Basic] [PkgVersion] [@Git] [Git::NextVersion] [NextRelease] [MetaJSON] [Prereqs] Carp = 0 File::Temp = 0.14 HTTP::Headers = 0 IO::File = 1.14 Digest::MD5 = 0 [Prereqs / TestRequires] Test::More = 0.86 Test::Deep = 0 HTTP::Request::Common = 0 Encode = 0 File::Spec::Functions = 0 File::Temp = 0 [PruneFiles] match = ^t/data/benchmark/* filename = scripts/benchmark.pl [MetaResources] repository.web = http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/HTTP-Body.git repository.url = git://git.shadowcat.co.uk/catagits/HTTP-Body.git repository.type = git x_mailing_list = http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev META.yml100644001750001750 201514601703275 14121 0ustar00gettygetty000000000000HTTP-Body-1.23--- abstract: 'HTTP Body Parser' author: - 'Christian Hansen, C' - 'Sebastian Riedel, C' - 'Andy Grundman, C' - 'Torsten Raudssus, C' build_requires: Encode: '0' File::Spec::Functions: '0' File::Temp: '0.14' HTTP::Request::Common: '0' Test::Deep: '0' Test::More: '0.86' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: HTTP-Body requires: Carp: '0' Digest::MD5: '0' File::Temp: '0.14' HTTP::Headers: '0' IO::File: '1.14' resources: Mailing_list: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev repository: git://git.shadowcat.co.uk/catagits/HTTP-Body.git version: '1.23' x_generated_by_perl: v5.36.0 x_serialization_backend: 'YAML::Tiny version 1.74' x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' MANIFEST100644001750001750 605314601703275 14007 0ustar00gettygetty000000000000HTTP-Body-1.23# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.030. Changes LICENSE MANIFEST META.json META.yml Makefile.PL README dist.ini lib/HTTP/Body.pm lib/HTTP/Body/MultiPart.pm lib/HTTP/Body/OctetStream.pm lib/HTTP/Body/UrlEncoded.pm lib/HTTP/Body/XForms.pm lib/HTTP/Body/XFormsMultipart.pm scripts/stress.pl t/01use.t t/02pod.t t/03podcoverage.t t/04critic.rc t/04critic.t t/04multipart.t t/05urlencoded.t t/06octetstream.t t/07xforms.t t/08multipart-suffix.t t/09rt88342-diff-regexp.t t/10mixparamcontent.t t/11new-suffix.t t/12rt88342-new.t t/data/multipart/001-content.dat t/data/multipart/001-headers.pml t/data/multipart/001-results.pml t/data/multipart/002-content.dat t/data/multipart/002-headers.pml t/data/multipart/002-results.pml t/data/multipart/003-content.dat t/data/multipart/003-headers.pml t/data/multipart/003-results.pml t/data/multipart/004-content.dat t/data/multipart/004-headers.pml t/data/multipart/004-results.pml t/data/multipart/005-content.dat t/data/multipart/005-headers.pml t/data/multipart/005-results.pml t/data/multipart/006-content.dat t/data/multipart/006-headers.pml t/data/multipart/006-results.pml t/data/multipart/007-content.dat t/data/multipart/007-headers.pml t/data/multipart/007-results.pml t/data/multipart/008-content.dat t/data/multipart/008-headers.pml t/data/multipart/008-results.pml t/data/multipart/009-content.dat t/data/multipart/009-headers.pml t/data/multipart/009-results.pml t/data/multipart/010-content.dat t/data/multipart/010-headers.pml t/data/multipart/010-results.pml t/data/multipart/011-content.dat t/data/multipart/011-headers.pml t/data/multipart/011-results.pml t/data/multipart/012-content.dat t/data/multipart/012-headers.pml t/data/multipart/012-results.pml t/data/multipart/013-content.dat t/data/multipart/013-headers.pml t/data/multipart/013-results.pml t/data/multipart/014-content.dat t/data/multipart/014-headers.pml t/data/multipart/015-content.dat t/data/multipart/015-headers.pml t/data/octetstream/001-content.dat t/data/octetstream/001-headers.pml t/data/octetstream/001-results.dat t/data/octetstream/002-content.dat t/data/octetstream/002-headers.pml t/data/octetstream/002-results.dat t/data/octetstream/003-content.dat t/data/octetstream/003-headers.pml t/data/octetstream/003-results.dat t/data/urlencoded/001-content.dat t/data/urlencoded/001-headers.pml t/data/urlencoded/001-results.pml t/data/urlencoded/002-content.dat t/data/urlencoded/002-headers.pml t/data/urlencoded/002-results.pml t/data/urlencoded/003-content.dat t/data/urlencoded/003-headers.pml t/data/urlencoded/003-results.pml t/data/urlencoded/004-content.dat t/data/urlencoded/004-headers.pml t/data/urlencoded/004-results.pml t/data/urlencoded/005-content.dat t/data/urlencoded/005-headers.pml t/data/urlencoded/005-results.pml t/data/urlencoded/006-content.dat t/data/urlencoded/006-headers.pml t/data/urlencoded/006-results.pml t/data/xforms/001-content.dat t/data/xforms/001-headers.pml t/data/xforms/001-results.pml t/data/xforms/002-content.dat t/data/xforms/002-headers.pml t/data/xforms/002-results.pml t/lib/PAML.pm t/utf8.txt t000755001750001750 014601703275 12755 5ustar00gettygetty000000000000HTTP-Body-1.2301use.t100644001750001750 12414601703275 14214 0ustar00gettygetty000000000000HTTP-Body-1.23/t#!perl use Test::More 'no_plan'; use strict; use warnings; use_ok 'HTTP::Body'; 02pod.t100644001750001750 27614601703275 14213 0ustar00gettygetty000000000000HTTP-Body-1.23/tuse Test::More; eval "use Test::Pod 1.14"; plan skip_all => 'Test::Pod 1.14 required' if $@; plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD}; all_pod_files_ok(); META.json100644001750001750 326014601703275 14274 0ustar00gettygetty000000000000HTTP-Body-1.23{ "abstract" : "HTTP Body Parser", "author" : [ "Christian Hansen, C", "Sebastian Riedel, C", "Andy Grundman, C", "Torsten Raudssus, C" ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "HTTP-Body", "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Carp" : "0", "Digest::MD5" : "0", "File::Temp" : "0.14", "HTTP::Headers" : "0", "IO::File" : "1.14" } }, "test" : { "requires" : { "Encode" : "0", "File::Spec::Functions" : "0", "File::Temp" : "0.14", "HTTP::Request::Common" : "0", "Test::Deep" : "0", "Test::More" : "0.86" } } }, "release_status" : "stable", "resources" : { "repository" : { "type" : "git", "url" : "git://git.shadowcat.co.uk/catagits/HTTP-Body.git", "web" : "http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/HTTP-Body.git" }, "x_mailing_list" : "http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev" }, "version" : "1.23", "x_generated_by_perl" : "v5.36.0", "x_serialization_backend" : "Cpanel::JSON::XS version 4.36", "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } utf8.txt100644001750001750 5114601703275 14500 0ustar00gettygetty000000000000HTTP-Body-1.23/t

This is stream_body_fh action ♥

Makefile.PL100644001750001750 276514601703275 14636 0ustar00gettygetty000000000000HTTP-Body-1.23# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.030. use strict; use warnings; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "HTTP Body Parser", "AUTHOR" => "Christian Hansen, C, Sebastian Riedel, C, Andy Grundman, C, Torsten Raudssus, C", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "HTTP-Body", "LICENSE" => "perl", "NAME" => "HTTP::Body", "PREREQ_PM" => { "Carp" => 0, "Digest::MD5" => 0, "File::Temp" => "0.14", "HTTP::Headers" => 0, "IO::File" => "1.14" }, "TEST_REQUIRES" => { "Encode" => 0, "File::Spec::Functions" => 0, "File::Temp" => "0.14", "HTTP::Request::Common" => 0, "Test::Deep" => 0, "Test::More" => "0.86" }, "VERSION" => "1.23", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "Carp" => 0, "Digest::MD5" => 0, "Encode" => 0, "File::Spec::Functions" => 0, "File::Temp" => "0.14", "HTTP::Headers" => 0, "HTTP::Request::Common" => 0, "IO::File" => "1.14", "Test::Deep" => 0, "Test::More" => "0.86" ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); 07xforms.t100644001750001750 344214601703275 14772 0ustar00gettygetty000000000000HTTP-Body-1.23/t#!perl use strict; use warnings; use FindBin; use lib "$FindBin::Bin/lib"; use Test::More tests => 14; use Cwd; use HTTP::Body; use File::Spec::Functions; use IO::File; use PAML; my $path = catdir( getcwd(), 't', 'data', 'xforms' ); for ( my $i = 1; $i <= 2; $i++ ) { my $test = sprintf( "%.3d", $i ); my $headers = PAML::LoadFile( catfile( $path, "$test-headers.pml" ) ); my $results = PAML::LoadFile( catfile( $path, "$test-results.pml" ) ); my $content = IO::File->new( catfile( $path, "$test-content.dat" ) ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} ); binmode $content, ':raw'; while ( $content->read( my $buffer, 1024 ) ) { $body->add($buffer); } # Save tempnames for later deletion my @temps; for my $field ( keys %{ $body->upload } ) { my $value = $body->upload->{$field}; for ( ( ref($value) eq 'ARRAY' ) ? @{$value} : $value ) { push @temps, delete $_->{tempname}; } } is_deeply( $body->body, $results->{body}, "$test XForms body" ); is_deeply( $body->param, $results->{param}, "$test XForms param" ); is_deeply( $body->param_order, $results->{param_order} ? $results->{param_order} : [], "$test XForms param_order" ); is_deeply( $body->upload, $results->{upload}, "$test XForms upload" ); if ( $body->isa('HTTP::Body::XFormsMultipart') ) { cmp_ok( $body->start, 'eq', $results->{start}, "$test XForms start" ); } else { ok( 1, "$test XForms start" ); } cmp_ok( $body->state, 'eq', 'done', "$test XForms state" ); cmp_ok( $body->length, '==', $headers->{'Content-Length'}, "$test XForms length" ); # Clean up temp files created unlink map { $_ } grep { defined $_ && -e $_ } @temps; } 04critic.t100644001750001750 75114601703275 14706 0ustar00gettygetty000000000000HTTP-Body-1.23/tuse strict; use warnings; use File::Spec; use FindBin (); use Test::More; if ( !-e "$FindBin::Bin/../MANIFEST.SKIP" ) { plan skip_all => 'Critic test only for developers.'; } else { eval { require Test::Perl::Critic }; if ( $@ ) { plan tests => 1; fail( 'You must install Test::Perl::Critic to run 04critic.t' ); exit; } } my $rcfile = File::Spec->catfile( 't', '04critic.rc' ); Test::Perl::Critic->import( -profile => $rcfile ); all_critic_ok();04critic.rc100644001750001750 15314601703275 15043 0ustar00gettygetty000000000000HTTP-Body-1.23/tinclude = CodeLayout::ProhibitHardTabs only = 1 [CodeLayout::ProhibitHardTabs] allow_leading_tabs = 0lib000755001750001750 014601703275 13523 5ustar00gettygetty000000000000HTTP-Body-1.23/tPAML.pm100644001750001750 315514601703275 14756 0ustar00gettygetty000000000000HTTP-Body-1.23/t/libpackage PAML; use strict; use warnings; # "PAML Ain't Markup Language"!!! use Carp qw[croak]; use Data::Dumper qw[]; use IO::File qw[]; BEGIN { our @EXPORT_OK = qw( DumpFile LoadFile ); require Exporter; *import = \&Exporter::import; } sub DumpFile ($$) { my ($path, $struct) = @_; my $data = do { local $Data::Dumper::Indent = 1; local $Data::Dumper::Purity = 1; local $Data::Dumper::Terse = 1; local $Data::Dumper::Useqq = 1; Data::Dumper->Dump([$struct], ['PAML']); }; my $io = IO::File->new($path, '>') || croak(qq[Couldn't open path '$path' in write mode: $!]); $io->binmode || croak(qq[Couldn't binmode filehandle: $!]); $io->print($data) || croak(qq[Couldn't write filehandle: $!]); $io->close || croak(qq[Couldn't close filehandle: $!]); 1; } sub LoadFile ($) { my ($path) = @_; my $data = do { my $io = IO::File->new($path, '<') || croak(qq[Couldn't open path '$path' in read mode: $!]); $io->binmode || croak(qq[Couldn't binmode filehandle: $!]); my $exp = -s $path; my $buf = do { local $/; <$io> }; my $got = length $buf; $io->close || croak(qq[Couldn't close filehandle: $!]); ($exp == $got) || croak(qq[I/O read mismatch, expexted: $exp got: $got]); $buf; }; if (substr($data, 0, 1) eq '{') { substr($data, 0, 0, '+'); } my $struct = eval($data); (!$@) || croak(qq[LoadFile couldn't eval data: $@]); $struct; } 1; 04multipart.t100644001750001750 476114601703275 15477 0ustar00gettygetty000000000000HTTP-Body-1.23/t#!perl use strict; use warnings; use FindBin; use lib "$FindBin::Bin/lib"; use Test::More tests => 153; use Test::Deep; use Cwd; use HTTP::Body; use File::Spec::Functions; use IO::File; use PAML; use File::Temp qw/ tempdir /; my $path = catdir( getcwd(), 't', 'data', 'multipart' ); for ( my $i = 1; $i <= 13; $i++ ) { my $test = sprintf( "%.3d", $i ); my $headers = PAML::LoadFile( catfile( $path, "$test-headers.pml" ) ); my $results = PAML::LoadFile( catfile( $path, "$test-results.pml" ) ); my $content = IO::File->new( catfile( $path, "$test-content.dat" ) ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} ); my $tempdir = tempdir( 'XXXXXXX', CLEANUP => 1, DIR => File::Spec->tmpdir() ); $body->tmpdir($tempdir); my $regex_tempdir = quotemeta($tempdir); binmode $content, ':raw'; while ( $content->read( my $buffer, 1024 ) ) { $body->add($buffer); } # Tests >= 10 use auto-cleanup if ( $i >= 10 ) { $body->cleanup(1); } # Save tempnames for later deletion my @temps; for my $field ( keys %{ $body->upload } ) { my $value = $body->upload->{$field}; for ( ( ref($value) eq 'ARRAY' ) ? @{$value} : $value ) { like($_->{tempname}, qr{$regex_tempdir}, "has tmpdir $tempdir"); push @temps, $_->{tempname}; } # Tell Test::Deep to ignore tempname values if ( ref $value eq 'ARRAY' ) { for ( @{ $results->{upload}->{$field} } ) { $_->{tempname} = ignore(); } } else { $results->{upload}->{$field}->{tempname} = ignore(); } } cmp_deeply( $body->body, $results->{body}, "$test MultiPart body" ); cmp_deeply( $body->param, $results->{param}, "$test MultiPart param" ); cmp_deeply( $body->param_order, $results->{param_order} ? $results->{param_order} : [], "$test MultiPart param_order" ); cmp_deeply( $body->upload, $results->{upload}, "$test MultiPart upload" ) if $results->{upload}; cmp_ok( $body->state, 'eq', 'done', "$test MultiPart state" ); cmp_ok( $body->length, '==', $body->content_length, "$test MultiPart length" ); if ( $i < 10 ) { # Clean up temp files created unlink map { $_ } grep { -e $_ } @temps; } undef $body; # Ensure temp files were deleted for my $temp ( @temps ) { ok( !-e $temp, "Temp file $temp was deleted" ); } } HTTP000755001750001750 014601703275 14037 5ustar00gettygetty000000000000HTTP-Body-1.23/libBody.pm100644001750001750 2751114601703275 15460 0ustar00gettygetty000000000000HTTP-Body-1.23/lib/HTTPpackage HTTP::Body; $HTTP::Body::VERSION = '1.23'; use strict; use Carp qw[ ]; our $TYPES = { 'application/octet-stream' => 'HTTP::Body::OctetStream', 'application/x-www-form-urlencoded' => 'HTTP::Body::UrlEncoded', 'multipart/form-data' => 'HTTP::Body::MultiPart', 'multipart/related' => 'HTTP::Body::XFormsMultipart', 'application/xml' => 'HTTP::Body::XForms', 'application/json' => 'HTTP::Body::OctetStream', }; require HTTP::Body::OctetStream; require HTTP::Body::UrlEncoded; require HTTP::Body::MultiPart; require HTTP::Body::XFormsMultipart; require HTTP::Body::XForms; use HTTP::Headers; use HTTP::Message; =head1 NAME HTTP::Body - HTTP Body Parser =head1 SYNOPSIS use HTTP::Body; sub handler : method { my ( $class, $r ) = @_; my $content_type = $r->headers_in->get('Content-Type'); my $content_length = $r->headers_in->get('Content-Length'); my $body = HTTP::Body->new( $content_type, $content_length ); my $length = $content_length; while ( $length ) { $r->read( my $buffer, ( $length < 8192 ) ? $length : 8192 ); $length -= length($buffer); $body->add($buffer); } my $uploads = $body->upload; # hashref my $params = $body->param; # hashref my $param_order = $body->param_order # arrayref my $body = $body->body; # IO::Handle } =head1 DESCRIPTION HTTP::Body parses chunks of HTTP POST data and supports application/octet-stream, application/json, application/x-www-form-urlencoded, and multipart/form-data. Chunked bodies are supported by not passing a length value to new(). It is currently used by L, L, L, L and L. =head1 NOTES When parsing multipart bodies, temporary files are created to store any uploaded files. You must delete these temporary files yourself after processing them, or set $body->cleanup(1) to automatically delete them at DESTROY-time. With version 1.23, we have changed the basic behavior of how temporary files are prepared for uploads. The extension of the file is no longer transferred to the temporary file, the extension will always be C<.upload>. We have also introduced variables that make it possible to set the behavior as required. =over 4 =item $HTTP::Body::MultiPart::file_temp_suffix This is the extension that is given to all multipart files. The default setting here is C<.upload>. If you want the old behavior from before version 1.23, simply undefine the value here. =item $HTTP::Body::MultiPart::basename_regexp This is the regexp used to determine out the file extension. This is of course no longer necessary, unless you undefine C. =item $HTTP::Body::MultiPart::file_temp_template This gets passed through to the L TEMPLATE parameter. There is no special default in our module. =item %HTTP::Body::MultiPart::file_temp_parameters In this hash you can add up custom settings for the L invokation. Those override every other setting. =back =head1 METHODS =over 4 =item new Constructor. Takes content type and content length as parameters, returns a L object. =cut sub new { my ( $class, $content_type, $content_length ) = @_; unless ( @_ >= 2 ) { Carp::croak( $class, '->new( $content_type, [ $content_length ] )' ); } my $type; my $earliest_index; foreach my $supported ( keys %{$TYPES} ) { my $index = index( lc($content_type), $supported ); if ($index >= 0 && (!defined $earliest_index || $index < $earliest_index)) { $type = $supported; $earliest_index = $index; } } my $body = $TYPES->{ $type || 'application/octet-stream' }; my $self = { cleanup => 0, buffer => '', chunk_buffer => '', body => undef, chunked => !defined $content_length, content_length => defined $content_length ? $content_length : -1, content_type => $content_type, length => 0, param => {}, param_order => [], state => 'buffering', upload => {}, part_data => {}, tmpdir => File::Spec->tmpdir(), }; bless( $self, $body ); return $self->init; } sub DESTROY { my $self = shift; if ( $self->{cleanup} ) { my @temps = (); for my $upload ( values %{ $self->{upload} } ) { push @temps, map { $_->{tempname} || () } ( ref $upload eq 'ARRAY' ? @{$upload} : $upload ); } unlink map { $_ } grep { -e $_ } @temps; } } =item add Add string to internal buffer. Will call spin unless done. returns length before adding self. =cut sub add { my $self = shift; if ( $self->{chunked} ) { $self->{chunk_buffer} .= $_[0]; while ( $self->{chunk_buffer} =~ m/^([\da-fA-F]+).*\x0D\x0A/ ) { my $chunk_len = hex($1); if ( $chunk_len == 0 ) { # Strip chunk len $self->{chunk_buffer} =~ s/^([\da-fA-F]+).*\x0D\x0A//; # End of data, there may be trailing headers if ( my ($headers) = $self->{chunk_buffer} =~ m/(.*)\x0D\x0A/s ) { if ( my $message = HTTP::Message->parse( $headers ) ) { $self->{trailing_headers} = $message->headers; } } $self->{chunk_buffer} = ''; # Set content_length equal to the amount of data we read, # so the spin methods can finish up. $self->{content_length} = $self->{length}; } else { # Make sure we have the whole chunk in the buffer (+CRLF) if ( length( $self->{chunk_buffer} ) >= $chunk_len ) { # Strip chunk len $self->{chunk_buffer} =~ s/^([\da-fA-F]+).*\x0D\x0A//; # Pull chunk data out of chunk buffer into real buffer $self->{buffer} .= substr $self->{chunk_buffer}, 0, $chunk_len, ''; # Strip remaining CRLF $self->{chunk_buffer} =~ s/^\x0D\x0A//; $self->{length} += $chunk_len; } else { # Not enough data for this chunk, wait for more calls to add() return; } } unless ( $self->{state} eq 'done' ) { $self->spin; } } return; } my $cl = $self->content_length; if ( defined $_[0] ) { $self->{length} += length( $_[0] ); # Don't allow buffer data to exceed content-length if ( $self->{length} > $cl ) { $_[0] = substr $_[0], 0, $cl - $self->{length}; $self->{length} = $cl; } $self->{buffer} .= $_[0]; } unless ( $self->state eq 'done' ) { $self->spin; } return ( $self->length - $cl ); } =item body accessor for the body. =cut sub body { my $self = shift; $self->{body} = shift if @_; return $self->{body}; } =item chunked Returns 1 if the request is chunked. =cut sub chunked { return shift->{chunked}; } =item cleanup Set to 1 to enable automatic deletion of temporary files at DESTROY-time. =cut sub cleanup { my $self = shift; $self->{cleanup} = shift if @_; return $self->{cleanup}; } =item content_length Returns the content-length for the body data if known. Returns -1 if the request is chunked. =cut sub content_length { return shift->{content_length}; } =item content_type Returns the content-type of the body data. =cut sub content_type { return shift->{content_type}; } =item init return self. =cut sub init { return $_[0]; } =item length Returns the total length of data we expect to read if known. In the case of a chunked request, returns the amount of data read so far. =cut sub length { return shift->{length}; } =item trailing_headers If a chunked request body had trailing headers, trailing_headers will return an HTTP::Headers object populated with those headers. =cut sub trailing_headers { return shift->{trailing_headers}; } =item spin Abstract method to spin the io handle. =cut sub spin { Carp::croak('Define abstract method spin() in implementation'); } =item state Returns the current state of the parser. =cut sub state { my $self = shift; $self->{state} = shift if @_; return $self->{state}; } =item param Get/set body parameters. =cut sub param { my $self = shift; if ( @_ == 2 ) { my ( $name, $value ) = @_; if ( exists $self->{param}->{$name} ) { for ( $self->{param}->{$name} ) { $_ = [$_] unless ref($_) eq "ARRAY"; push( @$_, $value ); } } else { $self->{param}->{$name} = $value; } push @{$self->{param_order}}, $name; } return $self->{param}; } =item upload Get/set file uploads. =cut sub upload { my $self = shift; if ( @_ == 2 ) { my ( $name, $upload ) = @_; if ( exists $self->{upload}->{$name} ) { for ( $self->{upload}->{$name} ) { $_ = [$_] unless ref($_) eq "ARRAY"; push( @$_, $upload ); } } else { $self->{upload}->{$name} = $upload; } } return $self->{upload}; } =item part_data Just like 'param' but gives you a hash of the full data associated with the part in a multipart type POST/PUT. Example: { data => "test", done => 1, headers => { "Content-Disposition" => "form-data; name=\"arg2\"", "Content-Type" => "text/plain" }, name => "arg2", size => 4 } =cut sub part_data { my $self = shift; if ( @_ == 2 ) { my ( $name, $data ) = @_; if ( exists $self->{part_data}->{$name} ) { for ( $self->{part_data}->{$name} ) { $_ = [$_] unless ref($_) eq "ARRAY"; push( @$_, $data ); } } else { $self->{part_data}->{$name} = $data; } } return $self->{part_data}; } =item tmpdir Specify a different path for temporary files. Defaults to the system temporary path. =cut sub tmpdir { my $self = shift; $self->{tmpdir} = shift if @_; return $self->{tmpdir}; } =item param_order Returns the array ref of the param keys in the order how they appeared on the body =cut sub param_order { return shift->{param_order}; } =back =head1 SUPPORT Since its original creation this module has been taken over by the Catalyst development team. If you need general support using this module: IRC: Join #catalyst on irc.perl.org. Mailing Lists: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst If you want to contribute patches, these will be your primary contact points: IRC: Join #catalyst-dev on irc.perl.org. Mailing Lists: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev =head1 AUTHOR Christian Hansen, C Sebastian Riedel, C Andy Grundman, C =head1 CONTRIBUTORS Simon Elliott C Kent Fredric C Christian Walde C Torsten Raudssus C =head1 LICENSE This library is free software. You can redistribute it and/or modify it under the same terms as perl itself. =cut 1; 05urlencoded.t100644001750001750 312714601703275 15576 0ustar00gettygetty000000000000HTTP-Body-1.23/t#!perl use strict; use warnings; use FindBin; use lib "$FindBin::Bin/lib"; use Test::More tests => 37; use Cwd; use Digest::MD5 qw(md5_hex); use HTTP::Body; use File::Spec::Functions; use IO::File; use PAML; my $path = catdir( getcwd(), 't', 'data', 'urlencoded' ); for ( my $i = 1; $i <= 6; $i++ ) { my $test = sprintf( "%.3d", $i ); my $headers = PAML::LoadFile( catfile( $path, "$test-headers.pml" ) ); my $results = PAML::LoadFile( catfile( $path, "$test-results.pml" ) ); my $content = IO::File->new( catfile( $path, "$test-content.dat" ) ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} ); binmode $content, ':raw'; while ( $content->read( my $buffer, 1024 ) ) { $body->add($buffer); } is_deeply( $body->body, $results->{body}, "$test UrlEncoded body" ); is_deeply( $body->param, $results->{param}, "$test UrlEncoded param" ); is_deeply( $body->param_order, $results->{param_order} ? $results->{param_order} : [], "$test UrlEncoded param_order" ); is_deeply( $body->upload, $results->{upload}, "$test UrlEncoded upload" ); cmp_ok( $body->state, 'eq', 'done', "$test UrlEncoded state" ); cmp_ok( $body->length, '==', $body->content_length, "$test UrlEncoded length" ); # Check trailing header on the chunked request if ( $i == 3 ) { my $content = IO::File->new( catfile( $path, "002-content.dat" ) ); binmode $content; $content->read( my $buf, 4096 ); is( $body->trailing_headers->header('Content-MD5'), md5_hex($buf), "$test trailing header ok" ); } } 11new-suffix.t100644001750001750 422514601703275 15542 0ustar00gettygetty000000000000HTTP-Body-1.23/t#!perl use strict; use warnings; use FindBin; use lib "$FindBin::Bin/lib"; use Test::More tests => 6; use Test::Deep; use Cwd; use HTTP::Body; use File::Spec::Functions; use IO::File; use PAML; use File::Temp qw/ tempdir /; my $path = catdir( getcwd(), 't', 'data', 'multipart' ); { my $uploads = uploads_for('001'); { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload2}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload4}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } } { my $uploads = uploads_for('006'); { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload2}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } } { my $uploads = uploads_for('014'); { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload2}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } like( $uploads->{upload2}{tempname}, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } sub uploads_for { my $number = shift; my $headers = PAML::LoadFile( catfile( $path, "$number-headers.pml" ) ); my $content = IO::File->new( catfile( $path, "$number-content.dat" ) ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} ); my $tempdir = tempdir( 'XXXXXXX', CLEANUP => 1, DIR => File::Spec->tmpdir() ); $body->tmpdir($tempdir); binmode $content, ':raw'; while ( $content->read( my $buffer, 1024 ) ) { $body->add($buffer); } $body->cleanup(1); return $body->upload; } scripts000755001750001750 014601703275 14201 5ustar00gettygetty000000000000HTTP-Body-1.23stress.pl100644001750001750 172214601703275 16223 0ustar00gettygetty000000000000HTTP-Body-1.23/scripts#!/usr/bin/perl BEGIN { require FindBin; } use strict; use warnings; use lib "$FindBin::Bin/../lib"; use lib "$FindBin::Bin/../t/lib"; use Benchmark qw[timethese]; use HTTP::Body qw[]; use IO::File qw[O_RDONLY]; use PAML qw[LoadFile]; my $headers = LoadFile("t/data/multipart/003-headers.pml"); my $run = sub { my $bsize = shift; my $content = IO::File->new( "$FindBin::Bin/../t/data/multipart/003-content.dat", O_RDONLY ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} ); binmode($content); while ( $content->sysread( my $buffer, $bsize ) ) { $body->add($buffer); } unless ( $body->state eq 'done' ) { die 'baaaaaaaaad'; } }; timethese( 1_000, { 'HTTP::Body 256' => sub { $run->(256) }, 'HTTP::Body 1024' => sub { $run->(1024) }, 'HTTP::Body 4096' => sub { $run->(4096) }, 'HTTP::Body 8192' => sub { $run->(8192) }, }); 06octetstream.t100644001750001750 236614601703275 16011 0ustar00gettygetty000000000000HTTP-Body-1.23/tuse strict; use warnings; use FindBin; use lib "$FindBin::Bin/lib"; use Test::More tests => 12; use Cwd; use HTTP::Body; use File::Spec::Functions; use IO::File; use PAML; my $path = catdir( getcwd(), 't', 'data', 'octetstream' ); for ( my $i = 1 ; $i <= 3 ; $i++ ) { my $test = sprintf( "%.3d", $i ); my $headers = PAML::LoadFile( catfile( $path, "$test-headers.pml" ) ); my $results = slurp_fh( IO::File->new( catfile( $path, "$test-results.dat" ) ) ); my $content = IO::File->new( catfile( $path, "$test-content.dat" ) ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} ); binmode $content, ':raw'; while ( $content->read( my $buffer, 1024 ) ) { $body->add($buffer); } isa_ok( $body->body, 'File::Temp', "$test OctetStream body isa" ); my $data = slurp_fh( $body->body ); is_deeply( $data, $results, "$test UrlEncoded body" ); cmp_ok( $body->state, 'eq', 'done', "$test UrlEncoded state" ); cmp_ok( $body->length, '==', $body->content_length, "$test UrlEncoded length" ); } sub slurp_fh { my ($fh) = @_; my $data = ''; while ( $fh->read( my $buffer, 1024 ) ) { $data .= $buffer; } $data; } 03podcoverage.t100644001750001750 32514601703275 15723 0ustar00gettygetty000000000000HTTP-Body-1.23/tuse Test::More; eval "use Test::Pod::Coverage 1.04"; plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@; plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD}; all_pod_coverage_ok(); 12rt88342-new.t100644001750001750 375614601703275 15305 0ustar00gettygetty000000000000HTTP-Body-1.23/t#!perl use strict; use warnings; use FindBin; use lib "$FindBin::Bin/lib"; use Test::More tests => 5; use Test::Deep; use Cwd; use HTTP::Body; use File::Spec::Functions; use IO::File; use PAML; use File::Temp qw/ tempdir /; my $path = catdir( getcwd(), 't', 'data', 'multipart' ); { my $uploads = uploads_for('015'); { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload2}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload3}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload4}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload5}{tempname} ); like( $file, qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'everything is file_temp_suffix now' ); } } sub uploads_for { my $number = shift; my $headers = PAML::LoadFile( catfile( $path, "$number-headers.pml" ) ); my $content = IO::File->new( catfile( $path, "$number-content.dat" ) ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} ); my $tempdir = tempdir( 'XXXXXXX', CLEANUP => 1, DIR => File::Spec->tmpdir() ); $body->tmpdir($tempdir); binmode $content, ':raw'; while ( $content->read( my $buffer, 1024 ) ) { $body->add($buffer); } $body->cleanup(1); return $body->upload; } 10mixparamcontent.t100644001750001750 701514601703275 16657 0ustar00gettygetty000000000000HTTP-Body-1.23/tuse utf8; use warnings; use strict; use Test::More; use Test::Deep; use HTTP::Body; use HTTP::Request::Common; use Encode; use File::Spec::Functions; use File::Temp qw/ tempdir /; SKIP: { eval { require HTTP::Message::PSGI }; skip "Plack not installed", 13 if $@; my $string_for_utf8 = 'test ♥'; my $string_in_utf8 = Encode::encode('UTF-8',$string_for_utf8); my $string_for_shiftjis = 'test テスト'; my $string_in_shiftjis = Encode::encode('SHIFT_JIS',$string_for_shiftjis); my $path = File::Spec->catfile('t', 'utf8.txt'); ok my $req = POST '/root/echo_arg', Content_Type => 'form-data', Content => [ arg0 => 'helloworld', arg1 => [ undef, '', 'Content-Type' =>'text/plain; charset=UTF-8', 'Content' => $string_in_utf8, ], arg2 => [ undef, '', 'Content-Type' =>'text/plain; charset=SHIFT_JIS', 'Content' => $string_in_shiftjis, ], arg2 => [ undef, '', 'Content-Type' =>'text/plain; charset=SHIFT_JIS', 'Content' => $string_in_shiftjis, ], arg3 => [ "$path", Encode::encode_utf8('♥ttachment.txt'), 'Content-Type' => 'text/plain; charset=UTF-8', 'Content' => $string_in_utf8, ], file => [ "$path", Encode::encode_utf8('♥ttachment.txt'), 'Content-Type' =>'text/html; charset=UTF-8' ], ]; ok my $env = HTTP::Message::PSGI::req_to_psgi($req); ok my $fh = $env->{'psgi.input'}; ok my $body = HTTP::Body->new( $req->header('Content-Type'), $req->header('Content-Length') ); ok my $tempdir = tempdir( 'XXXXXXX', CLEANUP => 1, DIR => File::Spec->tmpdir() ); $body->tmpdir($tempdir); binmode $fh, ':raw'; while ( $fh->read( my $buffer, 1024 ) ) { $body->add($buffer); } is $body->param->{'arg0'}, 'helloworld'; is $body->param->{'arg1'}, $string_in_utf8; is $body->param->{'arg2'}[0], $string_in_shiftjis; is $body->param->{'arg2'}[1], $string_in_shiftjis; cmp_deeply( $body->part_data->{'arg0'}, { data => 'helloworld', headers => { 'Content-Disposition' => re(qr{^form-data\b}), }, done => 1, name => 'arg0', size => 10, }, 'arg0 part data correct', ); cmp_deeply( $body->part_data->{'arg1'}, { data => $string_in_utf8, headers => { 'Content-Disposition' => re(qr{^form-data\b}), 'Content-Type' => 'text/plain; charset=UTF-8', }, done => 1, name => 'arg1', size => length($string_in_utf8), }, 'arg1 part data correct', ); cmp_deeply( $body->part_data->{'arg2'}, [ ({ data => $string_in_shiftjis, headers => { 'Content-Disposition' => re(qr{^form-data\b}), 'Content-Type' => 'text/plain; charset=SHIFT_JIS', }, done => 1, name => 'arg2', size => length($string_in_shiftjis), }) x 2, ], 'arg2 part data correct', ); my $filename = $body->upload->{'arg3'} ? ($body->upload->{'arg3'}->{tempname}||"") : ""; ok($filename =~ qr/\Q$HTTP::Body::MultiPart::file_temp_suffix\E$/, 'arg3 temp file extension correct'); }; done_testing; 08multipart-suffix.t100644001750001750 411314601703275 16774 0ustar00gettygetty000000000000HTTP-Body-1.23/t#!perl use strict; use warnings; use FindBin; use lib "$FindBin::Bin/lib"; use Test::More tests => 6; use Test::Deep; use Cwd; use HTTP::Body; use File::Spec::Functions; use IO::File; use PAML; use File::Temp qw/ tempdir /; my $path = catdir( getcwd(), 't', 'data', 'multipart' ); { $HTTP::Body::MultiPart::file_temp_suffix = undef; my $uploads = uploads_for('001'); { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload2}{tempname} ); like( $file, qr/^.{10}\.pl$/, 'tempname preserves .pl suffix' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload4}{tempname} ); unlike( $file, qr/^.{10}\..+$/, 'tempname for upload4 has no suffix' ); } } { my $uploads = uploads_for('006'); { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload2}{tempname} ); like( $file, qr/^.{10}\.pl$/, 'tempname preserves .pl suffix with Windows filename' ); } } { my $uploads = uploads_for('014'); { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload}{tempname} ); like( $file, qr/^.{10}\.foo\.txt$/, 'tempname preserves .foo.txt suffix' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload2}{tempname} ); like( $file, qr/^.{10}\.txt$/, 'tempname preserves .txt suffix when dir name has .' ); } like( $uploads->{upload2}{tempname}, qr/[\\\/]\w+.txt$/, 'tempname only gets extension from filename, not from a directory name' ); } sub uploads_for { my $number = shift; my $headers = PAML::LoadFile( catfile( $path, "$number-headers.pml" ) ); my $content = IO::File->new( catfile( $path, "$number-content.dat" ) ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} ); my $tempdir = tempdir( 'XXXXXXX', CLEANUP => 1, DIR => File::Spec->tmpdir() ); $body->tmpdir($tempdir); binmode $content, ':raw'; while ( $content->read( my $buffer, 1024 ) ) { $body->add($buffer); } $body->cleanup(1); return $body->upload; } Body000755001750001750 014601703275 14734 5ustar00gettygetty000000000000HTTP-Body-1.23/lib/HTTPXForms.pm100644001750001750 207314601703275 16652 0ustar00gettygetty000000000000HTTP-Body-1.23/lib/HTTP/Bodypackage HTTP::Body::XForms; $HTTP::Body::XForms::VERSION = '1.23'; use strict; use base 'HTTP::Body'; use bytes; use File::Temp 0.14; =head1 NAME HTTP::Body::XForms - HTTP Body XForms Parser =head1 SYNOPSIS use HTTP::Body::XForms; =head1 DESCRIPTION HTTP Body XForms Parser. This module parses single part XForms submissions, which are identifiable by the content-type application/xml. The XML is stored unparsed on the parameter XForms:Model. =head1 METHODS =over 4 =item spin This method is overwrited to set the param XForms:Model with the buffer content. =cut sub spin { my $self = shift; return unless $self->length == $self->content_length; $self->body($self->{buffer}); $self->param( 'XForms:Model', $self->{buffer} ); $self->{buffer} = ''; $self->{state} = 'done'; return $self->SUPER::init(); } =back =head1 SUPPORT See L =head1 AUTHOR Daniel Ruoso, C =head1 LICENSE This library is free software . You can redistribute it and/or modify it under the same terms as perl itself. =cut 1; 09rt88342-diff-regexp.t100644001750001750 307414601703275 16713 0ustar00gettygetty000000000000HTTP-Body-1.23/t#!perl use strict; use warnings; use FindBin; use lib "$FindBin::Bin/lib"; use Test::More tests => 3; use Test::Deep; use Cwd; use HTTP::Body; use File::Spec::Functions; use IO::File; use PAML; use File::Temp qw/ tempdir /; my $path = catdir( getcwd(), 't', 'data', 'multipart' ); { $HTTP::Body::MultiPart::file_temp_suffix = undef; $HTTP::Body::MultiPart::basename_regexp = qr/(\.\w+(?:\.\w+)*)$/; my $uploads = uploads_for('015'); { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload}{tempname} ); like( $file, qr/^.{10}\.tar\.gz\.Z$/, 'tempname preserves .tar.gz.Z suffix' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload2}{tempname} ); like( $file, qr/^.{10}\.png$/, 'tempname preserves .png suffix' ); } { my ($volume,$directories,$file) = File::Spec->splitpath( $uploads->{upload3}{tempname} ); like( $file, qr/^.{10}\.txt$/, 'tempname preserves .txt suffix' ); } } sub uploads_for { my $number = shift; my $headers = PAML::LoadFile( catfile( $path, "$number-headers.pml" ) ); my $content = IO::File->new( catfile( $path, "$number-content.dat" ) ); my $body = HTTP::Body->new( $headers->{'Content-Type'}, $headers->{'Content-Length'} ); my $tempdir = tempdir( 'XXXXXXX', CLEANUP => 1, DIR => File::Spec->tmpdir() ); $body->tmpdir($tempdir); binmode $content, ':raw'; while ( $content->read( my $buffer, 1024 ) ) { $body->add($buffer); } $body->cleanup(1); return $body->upload; } MultiPart.pm100644001750001750 1470614601703275 17403 0ustar00gettygetty000000000000HTTP-Body-1.23/lib/HTTP/Bodypackage HTTP::Body::MultiPart; $HTTP::Body::MultiPart::VERSION = '1.23'; use strict; use base 'HTTP::Body'; use bytes; use IO::File; use File::Temp 0.14; use File::Spec; =head1 NAME HTTP::Body::MultiPart - HTTP Body Multipart Parser =head1 SYNOPSIS use HTTP::Body::MultiPart; =head1 DESCRIPTION HTTP Body Multipart Parser. =head1 METHODS =over 4 =item init =cut sub init { my $self = shift; unless ( $self->content_type =~ /boundary=\"?([^\";]+)\"?/ ) { my $content_type = $self->content_type; Carp::croak("Invalid boundary in content_type: '$content_type'"); } $self->{boundary} = $1; $self->{state} = 'preamble'; return $self; } =item spin =cut sub spin { my $self = shift; while (1) { if ( $self->{state} =~ /^(preamble|boundary|header|body)$/ ) { my $method = "parse_$1"; return unless $self->$method; } else { Carp::croak('Unknown state'); } } } =item boundary =cut sub boundary { return shift->{boundary}; } =item boundary_begin =cut sub boundary_begin { return "--" . shift->boundary; } =item boundary_end =cut sub boundary_end { return shift->boundary_begin . "--"; } =item crlf =cut sub crlf () { return "\x0d\x0a"; } =item delimiter_begin =cut sub delimiter_begin { my $self = shift; return $self->crlf . $self->boundary_begin; } =item delimiter_end =cut sub delimiter_end { my $self = shift; return $self->crlf . $self->boundary_end; } =item parse_preamble =cut sub parse_preamble { my $self = shift; my $index = index( $self->{buffer}, $self->boundary_begin ); unless ( $index >= 0 ) { return 0; } # replace preamble with CRLF so we can match dash-boundary as delimiter substr( $self->{buffer}, 0, $index, $self->crlf ); $self->{state} = 'boundary'; return 1; } =item parse_boundary =cut sub parse_boundary { my $self = shift; if ( index( $self->{buffer}, $self->delimiter_begin . $self->crlf ) == 0 ) { substr( $self->{buffer}, 0, length( $self->delimiter_begin ) + 2, '' ); $self->{part} = {}; $self->{state} = 'header'; return 1; } if ( index( $self->{buffer}, $self->delimiter_end . $self->crlf ) == 0 ) { substr( $self->{buffer}, 0, length( $self->delimiter_end ) + 2, '' ); $self->{part} = {}; $self->{state} = 'done'; return 0; } return 0; } =item parse_header =cut sub parse_header { my $self = shift; my $crlf = $self->crlf; my $index = index( $self->{buffer}, $crlf . $crlf ); unless ( $index >= 0 ) { return 0; } my $header = substr( $self->{buffer}, 0, $index ); substr( $self->{buffer}, 0, $index + 4, '' ); my @headers; for ( split /$crlf/, $header ) { if (s/^[ \t]+//) { $headers[-1] .= $_; } else { push @headers, $_; } } my $token = qr/[^][\x00-\x1f\x7f()<>@,;:\\"\/?={} \t]+/; for my $header (@headers) { $header =~ s/^($token):[\t ]*//; ( my $field = $1 ) =~ s/\b(\w)/uc($1)/eg; if ( exists $self->{part}->{headers}->{$field} ) { for ( $self->{part}->{headers}->{$field} ) { $_ = [$_] unless ref($_) eq "ARRAY"; push( @$_, $header ); } } else { $self->{part}->{headers}->{$field} = $header; } } $self->{state} = 'body'; return 1; } =item parse_body =cut sub parse_body { my $self = shift; my $index = index( $self->{buffer}, $self->delimiter_begin ); if ( $index < 0 ) { # make sure we have enough buffer to detect end delimiter my $length = length( $self->{buffer} ) - ( length( $self->delimiter_end ) + 2 ); unless ( $length > 0 ) { return 0; } $self->{part}->{data} .= substr( $self->{buffer}, 0, $length, '' ); $self->{part}->{size} += $length; $self->{part}->{done} = 0; $self->handler( $self->{part} ); return 0; } $self->{part}->{data} .= substr( $self->{buffer}, 0, $index, '' ); $self->{part}->{size} += $index; $self->{part}->{done} = 1; $self->handler( $self->{part} ); $self->{state} = 'boundary'; return 1; } =item handler =cut our $basename_regexp = qr/[^.]+(\.[^\\\/]+)$/; our $file_temp_suffix = '.upload'; our $file_temp_template; our %file_temp_parameters; sub handler { my ( $self, $part ) = @_; unless ( exists $part->{name} ) { my $disposition = $part->{headers}->{'Content-Disposition'}; my ($name) = $disposition =~ / name="?([^\";]+)"?/; my ($filename) = $disposition =~ / filename="?([^\"]*)"?/; # Need to match empty filenames above, so this part is flagged as an upload type $part->{name} = $name; if ( defined $filename ) { $part->{filename} = $filename; if ( $filename ne "" ) { my $basename = (File::Spec->splitpath($filename))[2]; my $suffix = $basename =~ $basename_regexp ? $1 : q{}; my $fh = File::Temp->new( UNLINK => 0, DIR => $self->tmpdir, SUFFIX => ($file_temp_suffix||$suffix), ( $file_temp_template ? ( TEMPLATE => $file_temp_template ) : () ), %file_temp_parameters, ); $part->{fh} = $fh; $part->{tempname} = $fh->filename; } } } if ( $part->{fh} && ( my $length = length( $part->{data} ) ) ) { $part->{fh}->write( substr( $part->{data}, 0, $length, '' ), $length ); } if ( $part->{done} ) { if ( exists $part->{filename} ) { if ( $part->{filename} ne "" ) { $part->{fh}->close if defined $part->{fh}; delete @{$part}{qw[ data done fh ]}; $self->upload( $part->{name}, $part ); } } # If we have more than the content-disposition, we need to create a # data key so that we don't waste the headers. else { $self->param( $part->{name}, $part->{data} ); $self->part_data( $part->{name}, $part ) } } } =back =head1 SUPPORT See L =head1 AUTHOR Christian Hansen, C =head1 LICENSE This library is free software . You can redistribute it and/or modify it under the same terms as perl itself. =cut 1; UrlEncoded.pm100644001750001750 267614601703275 17471 0ustar00gettygetty000000000000HTTP-Body-1.23/lib/HTTP/Bodypackage HTTP::Body::UrlEncoded; $HTTP::Body::UrlEncoded::VERSION = '1.23'; use strict; use base 'HTTP::Body'; use bytes; our $DECODE = qr/%([0-9a-fA-F]{2})/; our %hex_chr; for my $num ( 0 .. 255 ) { my $h = sprintf "%02X", $num; $hex_chr{ lc $h } = $hex_chr{ uc $h } = chr $num; } =head1 NAME HTTP::Body::UrlEncoded - HTTP Body UrlEncoded Parser =head1 SYNOPSIS use HTTP::Body::UrlEncoded; =head1 DESCRIPTION HTTP Body UrlEncoded Parser. =head1 METHODS =over 4 =item spin =cut sub spin { my $self = shift; return unless $self->length == $self->content_length; # I tested parsing this using APR::Request, but perl is faster # Pure-Perl 2560/s # APR::Request 2305/s # Note: s/// appears faster than tr/// $self->{buffer} =~ s/\+/ /g; for my $pair ( split( /[&;](?:\s+)?/, $self->{buffer} ) ) { my ( $name, $value ) = split( /=/, $pair , 2 ); next unless defined $name; next unless defined $value; $name =~ s/$DECODE/$hex_chr{$1}/gs; $value =~ s/$DECODE/$hex_chr{$1}/gs; $self->param( $name, $value ); } $self->{buffer} = ''; $self->{state} = 'done'; } =back =head1 SUPPORT See L =head1 AUTHORS Christian Hansen, C Andy Grundman, C =head1 LICENSE This library is free software . You can redistribute it and/or modify it under the same terms as perl itself. =cut 1; OctetStream.pm100644001750001750 174014601703275 17666 0ustar00gettygetty000000000000HTTP-Body-1.23/lib/HTTP/Bodypackage HTTP::Body::OctetStream; $HTTP::Body::OctetStream::VERSION = '1.23'; use strict; use base 'HTTP::Body'; use bytes; use File::Temp 0.14; =head1 NAME HTTP::Body::OctetStream - HTTP Body OctetStream Parser =head1 SYNOPSIS use HTTP::Body::OctetStream; =head1 DESCRIPTION HTTP Body OctetStream Parser. =head1 METHODS =over 4 =item spin =cut sub spin { my $self = shift; unless ( $self->body ) { $self->body( File::Temp->new( DIR => $self->tmpdir ) ); } if ( my $length = length( $self->{buffer} ) ) { $self->body->write( substr( $self->{buffer}, 0, $length, '' ), $length ); } if ( $self->length == $self->content_length ) { seek( $self->body, 0, 0 ); $self->state('done'); } } =back =head1 SUPPORT See L =head1 AUTHOR Christian Hansen, C =head1 LICENSE This library is free software . You can redistribute it and/or modify it under the same terms as perl itself. =cut 1; xforms000755001750001750 014601703275 15204 5ustar00gettygetty000000000000HTTP-Body-1.23/t/data001-results.pml100644001750001750 125414601703275 20057 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/xforms{ "body" => "asdfgasdfg", "upload" => { "zxcvb\@zxcvb.com" => { "headers" => { "Content-ID" => "" }, "filename" => "zxcvb\@zxcvb.com", "name" => "zxcvb\@zxcvb.com", "size" => 17 }, "qwert\@qwerty.com" => { "headers" => { "Content-ID" => "" }, "filename" => "qwert\@qwerty.com", "name" => "qwert\@qwerty.com", "size" => 17 } }, "param" => { "XForms:Model" => "asdfgasdfg" }, param_order => [ "XForms:Model" ], "start" => "asdfg\@asdfg.com" } 001-content.dat100644001750001750 47114601703275 17770 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/xforms------------0xKhTmLbOuNdArY Content-ID: asdfgasdfg ------------0xKhTmLbOuNdArY Content-ID: Attachment file 1 ------------0xKhTmLbOuNdArY Content-ID: Attachment file 2 ------------0xKhTmLbOuNdArY-- 002-headers.pml100644001750001750 26714601703275 17755 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/xforms{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Length" => 55, "Content-Type" => "application/xml" } 001-headers.pml100644001750001750 37014601703275 17747 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/xforms{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Length" => 313, "Content-Type" => "multipart/related; boundary=----------0xKhTmLbOuNdArY; start=" } 002-content.dat100644001750001750 6714601703275 17752 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/xformsasdfgasdfg002-results.pml100644001750001750 35314601703275 20037 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/xforms{ "body" => "asdfgasdfg", "upload" => {}, "param" => { "XForms:Model" => "asdfgasdfg" }, param_order => [ "XForms:Model" ] } XFormsMultipart.pm100644001750001750 404614601703275 20556 0ustar00gettygetty000000000000HTTP-Body-1.23/lib/HTTP/Bodypackage HTTP::Body::XFormsMultipart; $HTTP::Body::XFormsMultipart::VERSION = '1.23'; use strict; use base 'HTTP::Body::MultiPart'; use bytes; use IO::File; use File::Temp 0.14; =head1 NAME HTTP::Body::XFormsMultipart - HTTP Body XForms multipart/related submission Parser =head1 SYNOPSIS use HTTP::Body::XForms; =head1 DESCRIPTION HTTP Body XForms submission Parser. Inherits HTTP::Body::MultiPart. This body type is used to parse XForms submission. In this case, the XML part that contains the model is indicated by the start attribute in the content-type. The XML content is stored unparsed on the parameter XForms:Model. =head1 METHODS =over 4 =item init This function is overridden to detect the start part of the multipart/related post. =cut sub init { my $self = shift; $self->SUPER::init(@_); unless ( $self->content_type =~ /start=\"?\;,]+)\>?\"?/ ) { my $content_type = $self->content_type; Carp::croak( "Invalid boundary in content_type: '$content_type'" ); } $self->{start} = $1; return $self; } =item start Defines the start part of the multipart/related body. =cut sub start { return shift->{start}; } =item handler This function is overridden to differ the start part, which should be set as the XForms:Model param if its content type is application/xml. =cut sub handler { my ( $self, $part ) = @_; my $contentid = $part->{headers}{'Content-ID'}; $contentid =~ s/^.*[\<\"]//; $contentid =~ s/[\>\"].*$//; if ( $contentid eq $self->start ) { $part->{name} = 'XForms:Model'; if ($part->{done}) { $self->body($part->{data}); } } elsif ( defined $contentid ) { $part->{name} = $contentid; $part->{filename} = $contentid; } return $self->SUPER::handler($part); } =back =head1 SUPPORT See L =head1 AUTHOR Daniel Ruoso C =head1 LICENSE This library is free software . You can redistribute it and/or modify it under the same terms as perl itself. =cut 1; multipart000755001750001750 014601703275 15707 5ustar00gettygetty000000000000HTTP-Body-1.23/t/data011-headers.pml100644001750001750 30514601703275 20451 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)", "Content-Length" => 1851, "Content-Type" => "multipart/form-data; boundary=---------------------------7d534d1d60150" } 011-content.dat100644001750001750 347314601703275 20521 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart-----------------------------7d534d1d60150 Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam -----------------------------7d534d1d60150 Content-Disposition: form-data; name="text2" -----------------------------7d534d1d60150 Content-Disposition: form-data; name="select" A -----------------------------7d534d1d60150 Content-Disposition: form-data; name="select" B -----------------------------7d534d1d60150 Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. -----------------------------7d534d1d60150 Content-Disposition: form-data; name="upload"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d534d1d60150 Content-Disposition: form-data; name="upload"; filename="" Content-Type: application/octet-stream -----------------------------7d534d1d60150 Content-Disposition: form-data; name="upload1"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d534d1d60150 Content-Disposition: form-data; name="upload2"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d534d1d60150-- 009-headers.pml100644001750001750 30614601703275 20461 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)", "Content-Length" => 1851, "Content-Type" => "multipart/form-data; boundary=---------------------------7d53941f40118" } 015-content.dat100644001750001750 203114601703275 20512 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload"; filename="xx xx.xx xx.tar.gz.Z" Content-Type: text/plain Some random junk ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload2"; filename="2013-06-19 at 11.37.56 PM.png" Content-Type: text/plain Some random junk ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload3"; filename="C:\Documents\foo bar\bar baz.txt" Content-Type: text/plain blah blah ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload4"; filename="malicious.txt;xeyes;foo.something" Content-Type: text/plain blah blah ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload5"; filename="filename.longextlongextlongextlongextlongextlongextlongextlongextlongextlongext.txt" Content-Type: text/plain blah blah ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload6"; filename="manyext.a1.b2.c3.d4.e5" Content-Type: text/plain blah blah ------------0xKhTmLbOuNdArY-- 012-headers.pml100644001750001750 31514601703275 20453 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)", "Content-Type" => "multipart/form-data; boundary=---------------------------7d534d1d60150", "Transfer-Encoding" => "chunked" } 008-results.pml100644001750001750 307714601703275 20576 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"C:\\WINDOWS\\Skrivbord\\hello.pl\"" }, "filename" => "C:\\WINDOWS\\Skrivbord\\hello.pl", "name" => "upload2", "size" => 71 }, "upload" => [ { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"C:\\WINDOWS\\Skrivbord\\hello.pl\"" }, "filename" => "C:\\WINDOWS\\Skrivbord\\hello.pl", "name" => "upload", "size" => 71 }, { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"C:\\WINDOWS\\Skrivbord\\hello.pl\"" }, "filename" => "C:\\WINDOWS\\Skrivbord\\hello.pl", "name" => "upload", "size" => 71 } ] }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 003-results.pml100644001750001750 245714601703275 20572 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload2", "size" => 71 }, "upload" => [ { "headers" => { "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 71 }, { "headers" => { "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 71 } ] }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\n\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 003-content.dat100644001750001750 274314601703275 20521 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart--00000000000000000000000000000000 Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam --00000000000000000000000000000000 Content-Disposition: form-data; name="text2" --00000000000000000000000000000000 Content-Disposition: form-data; name="select" A --00000000000000000000000000000000 Content-Disposition: form-data; name="select" B --00000000000000000000000000000000 Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. --00000000000000000000000000000000 Content-Disposition: form-data; name="upload"; filename="hello.pl" #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; --00000000000000000000000000000000 Content-Disposition: form-data; name="upload"; filename="hello.pl" #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; --00000000000000000000000000000000 Content-Disposition: form-data; name="upload1"; filename="" --00000000000000000000000000000000 Content-Disposition: form-data; name="upload2"; filename="hello.pl" #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; --00000000000000000000000000000000-- 005-results.pml100644001750001750 265714601703275 20576 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload2", "size" => 71 }, "upload" => [ { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 71 }, { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 71 } ] }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 008-headers.pml100644001750001750 30014601703275 20452 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)", "Content-Length" => 1750, "Content-Type" => "multipart/form-data; boundary=---------------------------7d52bc247fc" } 010-headers.pml100644001750001750 30314601703275 20446 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)", "Content-Length" => 1831, "Content-Type" => "multipart/form-data; boundary=---------------------------7d561c5012e" } 001-results.pml100644001750001750 366514601703275 20572 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload2", "size" => 78 }, "upload4" => { "headers" => { "Content-Disposition" => "form-data; name=\"upload4\"; filename=\"0\"" }, "filename" => 0, "name" => "upload4", "size" => 0 }, "upload3" => { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload3\"; filename=\"blank.pl\"" }, "filename" => "blank.pl", "name" => "upload3", "size" => 0 }, "upload" => [ { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 78 }, { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 78 } ] }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 013-content.dat100644001750001750 160414601703275 20515 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart------------0x'K()h+T_m,L-b.O/u:N=d?ArY Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam ------------0x'K()h+T_m,L-b.O/u:N=d?ArY Content-Disposition: form-data; name="text2" ------------0x'K()h+T_m,L-b.O/u:N=d?ArY Content-Disposition: form-data; name="select" A ------------0x'K()h+T_m,L-b.O/u:N=d?ArY Content-Disposition: form-data; name="select" B ------------0x'K()h+T_m,L-b.O/u:N=d?ArY Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. ------------0x'K()h+T_m,L-b.O/u:N=d?ArY-- 006-headers.pml100644001750001750 27714601703275 20465 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)", "Content-Length" => 1740, "Content-Type" => "multipart/form-data; boundary=---------------------------7d53c2922c" } 004-results.pml100644001750001750 273114601703275 20566 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload2", "size" => 71 }, "upload" => [ { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 71 }, { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 71 } ] }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 006-content.dat100644001750001750 331414601703275 20517 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart-----------------------------7d53c2922c Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam -----------------------------7d53c2922c Content-Disposition: form-data; name="text2" -----------------------------7d53c2922c Content-Disposition: form-data; name="select" A -----------------------------7d53c2922c Content-Disposition: form-data; name="select" B -----------------------------7d53c2922c Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. -----------------------------7d53c2922c Content-Disposition: form-data; name="upload"; filename="C:\WINDOWS\Skrivbord\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d53c2922c Content-Disposition: form-data; name="upload"; filename="C:\WINDOWS\Skrivbord\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d53c2922c Content-Disposition: form-data; name="upload1"; filename="" Content-Type: application/octet-stream -----------------------------7d53c2922c Content-Disposition: form-data; name="upload2"; filename="C:\WINDOWS\Skrivbord\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d53c2922c-- 013-headers.pml100644001750001750 35414601703275 20457 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Length" => 900, "Content-Type" => "multipart/form-data; boundary=----------0x'K()h+T_m,L-b.O/u:N=d?ArY" } 006-results.pml100644001750001750 307714601703275 20574 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"C:\\WINDOWS\\Skrivbord\\hello.pl\"" }, "filename" => "C:\\WINDOWS\\Skrivbord\\hello.pl", "name" => "upload2", "size" => 71 }, "upload" => [ { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"C:\\WINDOWS\\Skrivbord\\hello.pl\"" }, "filename" => "C:\\WINDOWS\\Skrivbord\\hello.pl", "name" => "upload", "size" => 71 }, { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"C:\\WINDOWS\\Skrivbord\\hello.pl\"" }, "filename" => "C:\\WINDOWS\\Skrivbord\\hello.pl", "name" => "upload", "size" => 71 } ] }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 009-content.dat100644001750001750 347314601703275 20530 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart-----------------------------7d53941f40118 Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam -----------------------------7d53941f40118 Content-Disposition: form-data; name="text2" -----------------------------7d53941f40118 Content-Disposition: form-data; name="select" A -----------------------------7d53941f40118 Content-Disposition: form-data; name="select" B -----------------------------7d53941f40118 Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. -----------------------------7d53941f40118 Content-Disposition: form-data; name="upload"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d53941f40118 Content-Disposition: form-data; name="upload"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d53941f40118 Content-Disposition: form-data; name="upload1"; filename="" Content-Type: application/octet-stream -----------------------------7d53941f40118 Content-Disposition: form-data; name="upload2"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d53941f40118-- 001-content.dat100644001750001750 343114601703275 20512 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="text2" ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="select" A ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="select" B ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload"; filename="hello.pl" Content-Type: application/octet-stream #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload"; filename="hello.pl" Content-Type: application/octet-stream #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload1"; filename="" ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload2"; filename="hello.pl" Content-Type: application/octet-stream #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload3"; filename="blank.pl" Content-Type: application/octet-stream ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload4"; filename="0" ------------0xKhTmLbOuNdArY-- 012-content.dat100644001750001750 353714601703275 20523 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart1ce -----------------------------7d534d1d60150 Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam -----------------------------7d534d1d60150 Content-Disposition: form-data; name="text2" -----------------------------7d534d1d60150 Content-Disposition: form-data; name="select" A -----------------------------7d534d1d60150 Content-Disposition: form-data; name="select" B -----------------------------7d534d1d60150 Co 1ce ntent-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. -----------------------------7d534d1d60150 Content- 1ce Disposition: form-data; name="upload"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d534d1d60150 Content-Disposition: form-data; name="upload"; filename="" Content-Type: application/octet-stream -----------------------------7d534d1d60150 Content-Disposition: form-data; name="upload1"; filename="C:\ 1ce Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d534d1d60150 Content-Disposition: form-data; name="upload2"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d534d1d60150- 3 - 0 004-content.dat100644001750001750 370314601703275 20517 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart-----------------------------168071508944249 Content-Disposition: form-data; name="text1" Content-Type: text/plain; charset="utf-8" Ratione accusamus aspernatur aliquam -----------------------------168071508944249 Content-Disposition: form-data; name="text2" Content-Type: text/plain; charset="utf-8" -----------------------------168071508944249 Content-Disposition: form-data; name="select" Content-Type: text/plain; charset="utf-8" A -----------------------------168071508944249 Content-Disposition: form-data; name="select" Content-Type: text/plain; charset="utf-8" B -----------------------------168071508944249 Content-Disposition: form-data; name="textarea" Content-Type: text/plain; charset="utf-8" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. -----------------------------168071508944249 Content-Disposition: form-data; name="upload"; filename="hello.pl" Content-Type: application/octet-stream #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------168071508944249 Content-Disposition: form-data; name="upload"; filename="hello.pl" Content-Type: application/octet-stream #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------168071508944249 Content-Disposition: form-data; name="upload1"; filename="" Content-Type: text/plain; charset="utf-8" -----------------------------168071508944249 Content-Disposition: form-data; name="upload2"; filename="hello.pl" Content-Type: application/octet-stream #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------168071508944249-- 007-results.pml100644001750001750 273114601703275 20571 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload2", "size" => 71 }, "upload" => [ { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 71 }, { "headers" => { "Content-Type" => "application/octet-stream", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"hello.pl\"" }, "filename" => "hello.pl", "name" => "upload", "size" => 71 } ] }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 010-content.dat100644001750001750 344714601703275 20521 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart-----------------------------7d561c5012e Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam -----------------------------7d561c5012e Content-Disposition: form-data; name="text2" -----------------------------7d561c5012e Content-Disposition: form-data; name="select" A -----------------------------7d561c5012e Content-Disposition: form-data; name="select" B -----------------------------7d561c5012e Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. -----------------------------7d561c5012e Content-Disposition: form-data; name="upload"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d561c5012e Content-Disposition: form-data; name="upload"; filename="" Content-Type: application/octet-stream -----------------------------7d561c5012e Content-Disposition: form-data; name="upload1"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d561c5012e Content-Disposition: form-data; name="upload2"; filename="C:\Documents and Settings\Administrator\Desktop\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d561c5012e-- 007-headers.pml100644001750001750 32214601703275 20455 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Mac_PowerPC Mac OS X; en) Opera 8.01", "Content-Length" => 1629, "Content-Type" => "multipart/form-data; boundary=----------Bv684bhJBhreYbdRAUxHhF" } 010-results.pml100644001750001750 330614601703275 20562 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload2", "size" => 71 }, "upload" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload", "size" => 71 }, "upload1" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload1\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload1", "size" => 71 } }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 013-results.pml100644001750001750 116114601703275 20562 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 012-results.pml100644001750001750 330614601703275 20564 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload2", "size" => 71 }, "upload" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload", "size" => 71 }, "upload1" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload1\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload1", "size" => 71 } }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 008-content.dat100644001750001750 332614601703275 20524 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart-----------------------------7d52bc247fc Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam -----------------------------7d52bc247fc Content-Disposition: form-data; name="text2" -----------------------------7d52bc247fc Content-Disposition: form-data; name="select" A -----------------------------7d52bc247fc Content-Disposition: form-data; name="select" B -----------------------------7d52bc247fc Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. -----------------------------7d52bc247fc Content-Disposition: form-data; name="upload"; filename="C:\WINDOWS\Skrivbord\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d52bc247fc Content-Disposition: form-data; name="upload"; filename="C:\WINDOWS\Skrivbord\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d52bc247fc Content-Disposition: form-data; name="upload1"; filename="" Content-Type: application/octet-stream -----------------------------7d52bc247fc Content-Disposition: form-data; name="upload2"; filename="C:\WINDOWS\Skrivbord\hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------7d52bc247fc-- 014-content.dat100644001750001750 52414601703275 20476 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload"; filename="hello.foo.txt" Content-Type: text/plain Some random junk ------------0xKhTmLbOuNdArY Content-Disposition: form-data; name="upload2"; filename="C:\Documents\foo.bar\baz.txt" Content-Type: text/plain blah blah ------------0xKhTmLbOuNdArY-- 015-headers.pml100644001750001750 34114601703275 20455 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Length" => 1051, "Content-Type" => "multipart/form-data; boundary=----------0xKhTmLbOuNdArY" } 005-headers.pml100644001750001750 37314601703275 20461 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4", "Content-Length" => 1817, "Content-Type" => "multipart/form-data; boundary=---------------------------168072824752491622650073" } 004-headers.pml100644001750001750 30514601703275 20453 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)", "Content-Length" => 1987, "Content-Type" => "multipart/form-data; boundary=---------------------------168071508944249" } 014-headers.pml100644001750001750 34014601703275 20453 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Length" => 339, "Content-Type" => "multipart/form-data; boundary=----------0xKhTmLbOuNdArY" } 002-headers.pml100644001750001750 21514601703275 20451 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Lynx/2.8.5rel.2 libwww-FM/2.14", "Content-Length" => 1585, "Content-Type" => "multipart/form-data; boundary=LYNX" } 007-content.dat100644001750001750 313514601703275 20521 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart------------Bv684bhJBhreYbdRAUxHhF Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam ------------Bv684bhJBhreYbdRAUxHhF Content-Disposition: form-data; name="text2" ------------Bv684bhJBhreYbdRAUxHhF Content-Disposition: form-data; name="select" A ------------Bv684bhJBhreYbdRAUxHhF Content-Disposition: form-data; name="select" B ------------Bv684bhJBhreYbdRAUxHhF Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. ------------Bv684bhJBhreYbdRAUxHhF Content-Disposition: form-data; name="upload"; filename="hello.pl" Content-Type: application/octet-stream #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; ------------Bv684bhJBhreYbdRAUxHhF Content-Disposition: form-data; name="upload"; filename="hello.pl" Content-Type: application/octet-stream #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; ------------Bv684bhJBhreYbdRAUxHhF Content-Disposition: form-data; name="upload1"; filename="" ------------Bv684bhJBhreYbdRAUxHhF Content-Disposition: form-data; name="upload2"; filename="hello.pl" Content-Type: application/octet-stream #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; ------------Bv684bhJBhreYbdRAUxHhF-- 001-headers.pml100644001750001750 34114601703275 20450 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Length" => 1817, "Content-Type" => "multipart/form-data; boundary=----------0xKhTmLbOuNdArY" } 011-results.pml100644001750001750 330614601703275 20563 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload2", "size" => 71 }, "upload" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload", "size" => 71 }, "upload1" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload1\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload1", "size" => 71 } }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 002-content.dat100644001750001750 306114601703275 20512 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart--LYNX Content-Disposition: form-data; name="text1" Content-Type: text/plain; charset=utf-8 Ratione accusamus aspernatur aliquam --LYNX Content-Disposition: form-data; name="text2" Content-Type: text/plain; charset=utf-8 --LYNX Content-Disposition: form-data; name="select" Content-Type: text/plain; charset=utf-8 A --LYNX Content-Disposition: form-data; name="select" Content-Type: text/plain; charset=utf-8 B --LYNX Content-Disposition: form-data; name="textarea" Content-Type: text/plain; charset=utf-8 Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. --LYNX Content-Disposition: form-data; name="upload"; filename="/Users/chansen/hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; --LYNX Content-Disposition: form-data; name="upload"; filename="/Users/chansen/hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; --LYNX Content-Disposition: form-data; name="upload1"; filename="" Content-Type: text/plain --LYNX Content-Disposition: form-data; name="upload2"; filename="/Users/chansen/hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; --LYNX-- 003-headers.pml100644001750001750 31014601703275 20446 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "User-Agent" => "ELinks/0.9.2 (textmode; Darwin 7.9.0 Power Macintosh; 167x36)", "Content-Length" => 1507, "Content-Type" => "multipart/form-data; boundary=00000000000000000000000000000000" } 005-content.dat100644001750001750 343114601703275 20516 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart-----------------------------168072824752491622650073 Content-Disposition: form-data; name="text1" Ratione accusamus aspernatur aliquam -----------------------------168072824752491622650073 Content-Disposition: form-data; name="text2" -----------------------------168072824752491622650073 Content-Disposition: form-data; name="select" A -----------------------------168072824752491622650073 Content-Disposition: form-data; name="select" B -----------------------------168072824752491622650073 Content-Disposition: form-data; name="textarea" Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non. Molestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa. -----------------------------168072824752491622650073 Content-Disposition: form-data; name="upload"; filename="hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------168072824752491622650073 Content-Disposition: form-data; name="upload"; filename="hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------168072824752491622650073 Content-Disposition: form-data; name="upload1"; filename="" Content-Type: application/octet-stream -----------------------------168072824752491622650073 Content-Disposition: form-data; name="upload2"; filename="hello.pl" Content-Type: text/plain #!/usr/bin/perl use strict; use warnings; print "Hello World :)\n"; -----------------------------168072824752491622650073-- 009-results.pml100644001750001750 334714601703275 20577 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload2", "size" => 71 }, "upload" => [ { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload", "size" => 71 }, { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl\"" }, "filename" => "C:\\Documents and Settings\\Administrator\\Desktop\\hello.pl", "name" => "upload", "size" => 71 } ] }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } 002-results.pml100644001750001750 301514601703275 20560 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/multipart{ "body" => undef, "upload" => { "upload2" => { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload2\"; filename=\"/Users/chansen/hello.pl\"" }, "filename" => "/Users/chansen/hello.pl", "name" => "upload2", "size" => 71 }, "upload" => [ { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"/Users/chansen/hello.pl\"" }, "filename" => "/Users/chansen/hello.pl", "name" => "upload", "size" => 71 }, { "headers" => { "Content-Type" => "text/plain", "Content-Disposition" => "form-data; name=\"upload\"; filename=\"/Users/chansen/hello.pl\"" }, "filename" => "/Users/chansen/hello.pl", "name" => "upload", "size" => 71 } ] }, "param" => { "text2" => "", "text1" => "Ratione accusamus aspernatur aliquam", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.\r\n", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea" ] } urlencoded000755001750001750 014601703275 16012 5ustar00gettygetty000000000000HTTP-Body-1.23/t/data003-results.pml100644001750001750 133414601703275 20666 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "body" => undef, "upload" => {}, "param" => { "text2" => "\303\245\303\244\303\266\303\245\303\244\303\266", "text1" => "Ratione accusamus aspernatur aliquam", "encoding" => "foo=bar", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea", "encoding" ] } 003-content.dat100644001750001750 112714601703275 20617 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencodedf9 text1=Ratione+accusamus+aspernatur+aliquam&text2=%C3%A5%C3%A4%C3%B6%C3%A5%C3%A4%C3%B6&select=A&select=B&textarea=Voluptatem+cumque+voluptate+sit+recusandae+at.+Et+quas+facere+rerum+unde+esse.+Sit+est+et+voluptatem.+Vel+temporibus+velit+neque+odio+no 7d n.%0D%0A%0D%0AMolestias+rerum+ut+sapiente+facere+repellendus+illo.+Eum+nulla+quis+aut.+Quidem+voluptas+vitae+ipsam+officia+vo 3e luptatibus+eveniet.+Aspernatur+cupiditate+ratione+aliquam+quid 1f em+corrupti.+Eos+sunt+rerum+non 10 +optio+culpa.&en 8 coding=f 4 oo%3 2 Db 2 ar 0 Content-MD5: 7fd07d9cb09bfd205f057440be771540 005-results.pml100644001750001750 21614601703275 20646 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "body" => undef, "upload" => {}, "param" => { "one" => "foo", "two" => "bar" }, "param_order" => [ "one", "two" ] } 001-results.pml100644001750001750 133414601703275 20664 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "body" => undef, "upload" => {}, "param" => { "text2" => "\303\245\303\244\303\266\303\245\303\244\303\266", "text1" => "Ratione accusamus aspernatur aliquam", "encoding" => "foo=bar", "textarea" => "Voluptatem cumque voluptate sit recusandae at. Et quas facere rerum unde esse. Sit est et voluptatem. Vel temporibus velit neque odio non.\r\n\r\nMolestias rerum ut sapiente facere repellendus illo. Eum nulla quis aut. Quidem voluptas vitae ipsam officia voluptatibus eveniet. Aspernatur cupiditate ratione aliquam quidem corrupti. Eos sunt rerum non optio culpa.", "select" => [ "A", "B" ] }, "param_order" => [ "text1", "text2", "select", "select", "textarea", "encoding" ] } 006-headers.pml100644001750001750 26114601703275 20561 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)", "Content-Length" => 19, "Content-Type" => "application/x-www-form-urlencoded" } 004-results.pml100644001750001750 21614601703275 20645 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "body" => undef, "upload" => {}, "param" => { "one" => "foo", "two" => "bar" }, "param_order" => [ "one", "two" ] } 006-content.dat100644001750001750 2414601703275 20555 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencodedone=foo;two=bar=bam 006-results.pml100644001750001750 22214601703275 20644 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "body" => undef, "upload" => {}, "param" => { "one" => "foo", "two" => "bar=bam" }, "param_order" => [ "one", "two" ] } 001-content.dat100644001750001750 76314601703275 20602 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencodedtext1=Ratione+accusamus+aspernatur+aliquam&text2=%C3%A5%C3%A4%C3%B6%C3%A5%C3%A4%C3%B6&select=A&select=B&textarea=Voluptatem+cumque+voluptate+sit+recusandae+at.+Et+quas+facere+rerum+unde+esse.+Sit+est+et+voluptatem.+Vel+temporibus+velit+neque+odio+non.%0D%0A%0D%0AMolestias+rerum+ut+sapiente+facere+repellendus+illo.+Eum+nulla+quis+aut.+Quidem+voluptas+vitae+ipsam+officia+voluptatibus+eveniet.+Aspernatur+cupiditate+ratione+aliquam+quidem+corrupti.+Eos+sunt+rerum+non+optio+culpa.&encoding=foo%3Dbar004-content.dat100644001750001750 2114601703275 20550 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencodedone=foo; two=bar 005-headers.pml100644001750001750 26114601703275 20560 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)", "Content-Length" => 15, "Content-Type" => "application/x-www-form-urlencoded" } 004-headers.pml100644001750001750 26114601703275 20557 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)", "Content-Length" => 16, "Content-Type" => "application/x-www-form-urlencoded" } 002-headers.pml100644001750001750 26114601703275 20555 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "User-Agent" => "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)", "Content-Length" => 15, "Content-Type" => "application/x-www-form-urlencoded" } 001-headers.pml100644001750001750 31214601703275 20551 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Length" => 499, "Content-Type" => "application/x-www-form-urlencoded" } 002-content.dat100644001750001750 2114601703275 20546 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencodedone=foo&two=bar 003-headers.pml100644001750001750 32314601703275 20555 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Type" => "application/x-www-form-urlencoded", "Transfer-Encoding" => "chunked" } 005-content.dat100644001750001750 2014601703275 20550 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencodedone=foo;two=bar 002-results.pml100644001750001750 21714601703275 20644 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/urlencoded{ "body" => undef, "upload" => {}, "param" => { "one" => "foo", "two" => "bar" }, "param_order" => [ "one", "two" ], } octetstream000755001750001750 014601703275 16220 5ustar00gettygetty000000000000HTTP-Body-1.23/t/data002-results.dat100644001750001750 200114601703275 21043 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/octetstreamaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 001-results.dat100644001750001750 414601703275 20763 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/octetstreamFoo 003-content.dat100644001750001750 203614601703275 21025 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/octetstream143 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 146 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa d1 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a7 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 0 001-content.dat100644001750001750 414601703275 20734 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/octetstreamFoo 002-headers.pml100644001750001750 30014601703275 20755 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/octetstream{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Length" => 1025, "Content-Type" => "application/x.atom+xml" } 001-headers.pml100644001750001750 27714601703275 20771 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/octetstream{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Length" => 4, "Content-Type" => "application/octet-stream" } 002-content.dat100644001750001750 200114601703275 21014 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/octetstreamaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 003-headers.pml100644001750001750 31014601703275 20757 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/octetstream{ "User-Agent" => "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312", "Content-Type" => "application/x.atom+xml", "Transfer-Encoding" => "chunked" } 003-results.dat100644001750001750 200114601703275 21044 0ustar00gettygetty000000000000HTTP-Body-1.23/t/data/octetstreamaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa