--- parser3/tests/results/346-curl.processed 2016/08/03 16:36:16 1.1 +++ parser3/tests/results/346-curl.processed 2016/08/04 17:01:30 1.4 @@ -1,6 +1,33 @@ Content-Type: text/html -Content-Length: 621 +Content-Length: 2569 +Type: curl, +Source: info, +Comment: outside of 'session' operator +Type: curl, +Source: options, +Comment: outside of 'session' operator +Type: curl, +Source: options, +Comment: outside of 'session' operator +Type: curl, +Source: options, +Comment: failed to set option 'library': already loaded +Type: curl, +Source: options, +Comment: failed to set option 'url': invalid url scheme 'ftp://parser.ru/' +Type: curl, +Source: name, +Comment: is hash, form option value can be string, table or file only +Type: curl, +Source: options, +Comment: failed to set option 'httppost': value must be a hash +Type: curl, +Source: options, +Comment: called with invalid option 'no-such-option' +Type: curl, +Source: info, +Comment: called with invalid parameter 'no-such-info' { "size_download":0, "request_size":0, @@ -29,6 +56,68 @@ Content-Length: 621 "content_length_upload":-1, "size_upload":0 } -Type: curl, +Parser3 tests (make tests). +Don't delete or modify them. +bytes 4-62/63 +Don't delete or modify them. +bytes 33-62/63 +text : { +"name":"test.txt", +"size":265, +"mode":"binary", +"content-type":"something\/text", +} +

Headers

+
CONTENT_LENGTH	: 4
+CONTENT_TYPE	: application/x-www-form-urlencoded
+HTTP_ACCEPT	: */*
+HTTP_HOST	: www.parser.ru
+HTTP_USER_AGENT	: parser%203
+REQUEST_METHOD	: POST
+REQUEST_URI	: /_/tests/223.pl
+SCRIPT_NAME	: /_/tests/223.pl
+SERVER_NAME	: www.parser.ru
+

Body

+
test
+
+binary : { +"name":"223.pl", +"size":255, +"mode":"text", +"content-type":"text\/plain", +} +

Headers

+
CONTENT_LENGTH	: 22
+CONTENT_TYPE	: application/x-www-form-urlencoded
+HTTP_ACCEPT	: */*
+HTTP_HOST	: www.parser.ru
+REQUEST_METHOD	: POST
+REQUEST_URI	: /_/tests/223.pl
+SCRIPT_NAME	: /_/tests/223.pl
+SERVER_NAME	: www.parser.ru
+

Body

+
"a"	"b"
+"av	av"	"b
+v"
+
+
+empty post : { +"name":"223.pl", +"size":183, +"mode":"text", +"content-type":"text\/plain", +} +

Headers

+
CONTENT_LENGTH	: 0
+HTTP_ACCEPT	: */*
+HTTP_HOST	: www.parser.ru
+REQUEST_METHOD	: POST
+REQUEST_URI	: /_/tests/223.pl
+SCRIPT_NAME	: /_/tests/223.pl
+SERVER_NAME	: www.parser.ru
+

Body

+

+
+Type: curl.host, Source: load, -Comment: failed to set option 'url': invalid url scheme 'ftp://parser.ru/' +Comment: Couldn't resolve host name