Codebase list libhttp-tiny-multipart-perl / 9857630
New upstream snapshot. Debian Janitor 1 year, 3 months ago
8 changed file(s) with 119 addition(s) and 41 deletion(s). Raw diff Collapse all Expand all
+0
-17
CONTRIBUTORS less more
0
1 # HTTP-TINY-MULTIPART CONTRIBUTORS #
2
3 This is the (likely incomplete) list of people who have helped
4 make this distribution what it is, either via code contributions,
5 patches, bug reports, help with troubleshooting, etc. A huge
6 'thank you' to all of them.
7
8 * Aran Deltac
9 * Mark Glines
10 * Mohammad S Anwar
11 * Renee Baecker
12 * reneeb
13 * Renee
14 * Stephen Thirlwall
15
16
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010.
1 CONTRIBUTORS
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.025.
21 Changes
32 LICENSE
43 MANIFEST
54 META.json
65 META.yml
76 Makefile.PL
7 README
88 dist.ini
99 lib/HTTP/Tiny/Multipart.pm
1010 t/01_base.t
33 "Renee Baecker <reneeb@cpan.org>"
44 ],
55 "dynamic_config" : 0,
6 "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150005",
6 "generated_by" : "Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010",
77 "license" : [
88 "artistic_2"
99 ],
5353 }
5454 },
5555 "version" : "0.08",
56 "x_contributors" : [
57 "Aran Deltac <bluefeet@gmail.com>",
58 "Mark Glines <mark@glines.org>",
59 "Mohammad S Anwar <mohammad.anwar@yahoo.com>",
60 "Renee Baecker <github@renee-baecker.de>",
61 "reneeb <info@perl-services.de>",
62 "Renee <reb@perl-services.de>",
63 "Stephen Thirlwall <sdt@dr.com>"
64 ],
65 "x_serialization_backend" : "Cpanel::JSON::XS version 4.02"
56 "x_generated_by_perl" : "v5.36.0",
57 "x_serialization_backend" : "Cpanel::JSON::XS version 4.32",
58 "x_spdx_expression" : "Artistic-2.0"
6659 }
6760
55 configure_requires:
66 ExtUtils::MakeMaker: '0'
77 dynamic_config: 0
8 generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150005'
8 generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010'
99 license: artistic_2
1010 meta-spec:
1111 url: http://module-build.sourceforge.net/META-spec-v1.4.html
2525 homepage: http://github.com/reneeb/HTTP-Tiny-Multipart
2626 repository: http://github.com/reneeb/HTTP-Tiny-Multipart.git
2727 version: '0.08'
28 x_contributors:
29 - 'Aran Deltac <bluefeet@gmail.com>'
30 - 'Mark Glines <mark@glines.org>'
31 - 'Mohammad S Anwar <mohammad.anwar@yahoo.com>'
32 - 'Renee Baecker <github@renee-baecker.de>'
33 - 'reneeb <info@perl-services.de>'
34 - 'Renee <reb@perl-services.de>'
35 - 'Stephen Thirlwall <sdt@dr.com>'
36 x_serialization_backend: 'YAML::Tiny version 1.69'
28 x_generated_by_perl: v5.36.0
29 x_serialization_backend: 'YAML::Tiny version 1.73'
30 x_spdx_expression: Artistic-2.0
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010.
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.025.
11 use strict;
22 use warnings;
33
0 NAME
1
2 HTTP::Tiny::Multipart - Add post_multipart to HTTP::Tiny
3
4 VERSION
5
6 version 0.08
7
8 SYNOPSIS
9
10 use HTTP::Tiny;
11 use HTTP::Tiny::Multipart;
12
13 my $http = HTTP::Tiny->new;
14
15 my $content = "This is a test";
16
17 my $response = $http->post_multipart( 'http://localhost:3000/', {
18 file => {
19 filename => 'test.txt',
20 content => $content,
21 }
22 } );
23
24 creates this request
25
26 POST / HTTP/1.1
27 Content-Length: 104
28 User-Agent: HTTP-Tiny/0.025
29 Content-Type: multipart/form-data; boundary=go7DX
30 Connection: close
31 Host: localhost:3000
32
33 --go7DX
34 Content-Disposition: form-data; name="file"; filename="test.txt"
35
36 This is a test
37 --go7DX--
38
39 And
40
41 use HTTP::Tiny;
42 use HTTP::Tiny::Multipart;
43
44 my $http = HTTP::Tiny->new;
45
46 my $content = "This is a test";
47
48 my $response = $http->post_multipart( 'http://localhost:3000/', {
49 file => {
50 filename => 'test.txt',
51 content => $content,
52 content_type => 'text/plain',
53 },
54 testfield => 'test'
55 } );
56
57 creates
58
59 POST / HTTP/1.1
60 Content-Length: 104
61 User-Agent: HTTP-Tiny/0.025
62 Content-Type: multipart/form-data; boundary=go7DX
63 Connection: close
64 Host: localhost:3000
65
66 --go7DX
67 Content-Disposition: form-data; name="file"; filename="test.txt"
68 Content-Type: text/plain
69
70 This is a test
71 --go7DX
72 Content-Disposition: form-data; name="testfield"
73
74 test
75 --go7DX--
76
77 CONTRIBUTORS
78
79 * Stephen Thirlwall
80
81 * Markvy
82
83 * Infinoid
84
85 * Mohammad S Anwar
86
87 AUTHOR
88
89 Renee Baecker <reneeb@cpan.org>
90
91 COPYRIGHT AND LICENSE
92
93 This software is Copyright (c) 2018 by Renee Baecker.
94
95 This is free software, licensed under:
96
97 The Artistic License 2.0 (GPL Compatible)
98
0 libhttp-tiny-multipart-perl (0.08+git20180501.1.3fdc709-1) UNRELEASED; urgency=low
1
2 * New upstream snapshot.
3
4 -- Debian Janitor <janitor@jelmer.uk> Fri, 20 Jan 2023 01:40:11 -0000
5
06 libhttp-tiny-multipart-perl (0.08-2) unstable; urgency=medium
17
28 [ gregor herrmann ]
2222 [MetaProvides::Package]
2323
2424 [ReadmeAnyFromPod / MarkdownInRoot]
25 phase = build
26
27 [ReadmeAnyFromPod / TextInBuild]
2528 phase = build
2629
2730 [GitHubREADME::Badge]