--- parser3/tests/346-curl.html 2016/09/26 20:45:35 1.6
+++ parser3/tests/346-curl.html 2017/11/28 22:58:36 1.8
@@ -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[]]
@@ -47,11 +53,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]