File:  [parser3project] / parser3 / tests / 379-curl.html
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Fri Dec 13 14:00:51 2024 UTC (17 months, 2 weeks ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
some curl versions accept "HTTP/1.0 200OK? OK" status, some not, ignore

@main[]
1.     ^test[slow]
2.     ^test[valid-content-length]
3.     ^test[invalid-content-length]
4.     ^test[empty-body]
4-win. ^test[empty-body-win]
5.     ^test[null-body]
6.     ^test[empty-headers]
6-win. ^test[empty-headers-win]
6-win. ^test[empty-headers-win;binary]
7.     ^test[null-headers]
7.1    ^test[bad-headers]
7.1    ^test[bad-cookies]
8.     ^test[invalid-status]
9.     ^test[no-status-1]
10.    ^test[no-status-2]
11.    ^test[no-status-3]
#12.    ^test[strange-status]
13.    ^test[strange-content-length-1]
14.    ^test[strange-content-length-2]

@test[query;mode]
$query test result:
^try-catch{
    ^json:string[^curl:load[ ^if(def $mode){$.mode[$mode]} $.url[http://www.parser.ru/_/tests/nph-379.pl?$query]]; $.file[text] ]
}

E-mail: