--- parser3/tests/346-curl.html 2016/12/02 22:27:18 1.7 +++ parser3/tests/346-curl.html 2026/09/06 23:12:17 1.12 @@ -10,7 +10,7 @@ ^curl:session{ 6. ^try-catch{ ^curl:options[ $.url[ftp://parser.ru/] ] } - 7. ^try-catch{ ^curl:options[ $.httppost[ $.name[ $.hash[] ]] ] } + 7. ^try-catch{ ^curl:options[ $.httppost[ $.name(true) ] ] } 8. ^try-catch{ ^curl:options[ $.httppost[string] ] } 8.1. ^try-catch{ ^curl:options[ $.httppost{code} ] } @@ -38,6 +38,9 @@ ]] $f.text $f.CONTENT-RANGE + + 13.1. ^try-catch{ ^curl:options[ $.http_version[unknown] ] } + 13.2. ^try-catch{ ^curl:options[ $.http_version[1.0] ] } } 14. ^show[text; @@ -53,13 +56,29 @@ $.postfields[^file::load[binary;155.cfg]] ] +^curl:session{ + 16. ^show[empty post; + $.post(true) +] + +17. ^show[empty get; $.httppost[] + $.post(false) ] -17. ^try-catch{ ^curl:load[ $.url[http://no-such-domain.parser.ru/] ] } +} + +18. ^show[empty custompost; + $.customrequest[POST] +] + +19. ^try-catch-filtered{ ^curl:load[ $.url[http://no-such-domain.parser.ru/] ] } + +@show[title;options] +^try-catch{^show-real[$title;$options]} -@show[title;options][f;text;t;post] +@show-real[title;options][f;text;t;post] $f[^curl:load[ $options