File: put-03.txt

package info (click to toggle)
libhttp-tiny-perl 0.090-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 788 kB
  • sloc: perl: 3,124; makefile: 6
file content (25 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
url
  http://example.com/chunked.txt
headers
  Content-Type: text/plain
content_cb
  my @content = qq{abcdefghijklmnopqrstuvwxyz1234567890abcdef};
  sub { shift @content }
----------
PUT /chunked.txt HTTP/1.1
Host: example.com
Connection: close
User-Agent: HTTP-Tiny/VERSION
Content-Type: text/plain
Transfer-Encoding: chunked

2A
abcdefghijklmnopqrstuvwxyz1234567890abcdef
0

----------
HTTP/1.1 201 Created
Date: Thu, 03 Feb 1994 00:00:00 GMT
Location: http://example.com/chunked.txt
Content-Length: 0