--- parser3/tests/results/346-curl.processed 2016/08/03 20:33:56 1.2 +++ parser3/tests/results/346-curl.processed 2017/11/28 21:54:17 1.7 @@ -1,22 +1,44 @@ Content-Type: text/html -Content-Length: 910 +Content-Length: 3078 -Type: curl, +1. Type: curl, Source: info, Comment: outside of 'session' operator -Type: curl, +2. Type: curl, Source: options, Comment: outside of 'session' operator -Type: curl, +3. Type: curl, Source: options, Comment: outside of 'session' operator -Type: curl, +4. 5. Type: curl, Source: options, Comment: failed to set option 'library': already loaded -Type: curl, +6. Type: curl, Source: options, Comment: failed to set option 'url': invalid url scheme 'ftp://parser.ru/' -{ +7. Type: curl, +Source: name, +Comment: is hash, form option value can be string, table or file only +8. Type: parser.runtime, +Source: options, +Comment: failed to set option 'httppost': value must have hash representation +8.1. Type: parser.runtime, +Source: options, +Comment: failed to set option 'httppost': value must have hash representation +8.2. Type: parser.runtime, +Source: options, +Comment: failed to set option 'httpheader': value must have hash representation +8.3. Type: parser.runtime, +Source: options, +Comment: failed to set option 'httpheader': value must have hash representation +8.4. 9. Type: curl, +Source: options, +Comment: called with invalid option 'no-such-option' +10. Type: curl, +Source: info, +Comment: called with invalid parameter 'no-such-info' +11. { +"http_version":"none", "size_download":0, "request_size":0, "content_type":"", @@ -26,6 +48,7 @@ Comment: failed to set option 'url': inv "appconnect_time":0, "pretransfer_time":0, "num_connects":0, +"scheme":"", "primary_ip":"", "speed_upload":0, "speed_download":0, @@ -36,6 +59,7 @@ Comment: failed to set option 'url': inv "namelookup_time":0, "redirect_count":0, "httpauth_avail":0, +"protocol":0, "total_time":0, "content_length_download":-1, "os_errno":0, @@ -44,3 +68,68 @@ Comment: failed to set option 'url': inv "content_length_upload":-1, "size_upload":0 } +12. Parser3 tests (make tests). +Don't delete or modify them. +bytes 4-62/63 +13. Don't delete or modify them. +bytes 33-62/63 +14. text : { +"name":"test.txt", +"size":265, +"mode":"binary", +"content-type":"something\/text", +} +
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+
test+
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+
"a" "b" +"av av" "b +v" ++
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+