xref: /openbsd-src/gnu/usr.bin/perl/cpan/HTTP-Tiny/corpus/put-02.txt (revision bf198cc6eba0ca1f6d79f71e8e2243d386241fa8)
1url
2  http://example.com/callback.txt
3headers
4  Content-Type: text/plain
5  Content-Length: 42
6content_cb
7  my @content = qq{abcdefghijklmnopqrstuvwxyz1234567890abcdef};
8  sub { shift @content }
9----------
10PUT /callback.txt HTTP/1.1
11Host: example.com
12Connection: close
13User-Agent: HTTP-Tiny/VERSION
14Content-Type: text/plain
15Content-Length: 42
16
17abcdefghijklmnopqrstuvwxyz1234567890abcdef
18
19----------
20HTTP/1.1 201 Created
21Date: Thu, 03 Feb 1994 00:00:00 GMT
22Location: http://example.com/callback.txt
23Content-Length: 0
24
25