--- parser3/tests/346-curl.html 2016/09/26 20:45:35 1.6 +++ parser3/tests/346-curl.html 2017/12/08 00:55:21 1.9 @@ -12,6 +12,12 @@ 6. ^try-catch{ ^curl:options[ $.url[ftp://parser.ru/] ] } 7. ^try-catch{ ^curl:options[ $.httppost[ $.name[ $.hash[] ]] ] } 8. ^try-catch{ ^curl:options[ $.httppost[string] ] } + 8.1. ^try-catch{ ^curl:options[ $.httppost{code} ] } + + 8.2. ^try-catch{ ^curl:options[ $.httpheader[string] ] } + 8.3. ^try-catch{ ^curl:options[ $.httpheader{code} ] } + 8.4. ^try-catch{ ^curl:options[ $.httpheader{ } ] } + 9. ^try-catch{ ^curl:options[ $.no-such-option[] ] } 10. ^try-catch{ ^curl:info[no-such-info] } 11. ^json:string[^curl:info[]] @@ -32,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; @@ -47,11 +56,24 @@ $.postfields[^file::load[binary;155.cfg]] ] +^curl:session{ + 16. ^show[empty post; + $.post(true) +] + +17. ^show[empty get; $.httppost[] + $.post(false) +] + +} + +18. ^show[empty custompost; + $.customrequest[POST] ] -17. ^try-catch{ ^curl:load[ $.url[http://no-such-domain.parser.ru/] ] } +19. ^try-catch{ ^curl:load[ $.url[http://no-such-domain.parser.ru/] ] } @show[title;options][f;text;t;post]