From 4a3ec1c7e77e3da09d39ab57048bc6b1a39fb003 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 23 Feb 2024 17:50:38 +0300 Subject: Add read_http_status(), parse_http_status_code(), and read_http_response_line() static functions to curl class --- tests/curl/testscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/curl') diff --git a/tests/curl/testscript b/tests/curl/testscript index 3da2306..453c09a 100644 --- a/tests/curl/testscript +++ b/tests/curl/testscript @@ -43,14 +43,14 @@ sudo /usr/sbin/in.tftpd \ : http : { - $* 'http' 2>>EOE + $* 'http' 2>>~%EOE% curl -s -S --fail --location https://build2.org/bogus - curl: (22) The requested URL returned error: 404 Not Found + %curl: \(22\) The requested URL returned error: 404( Not Found)?% curl -s -S --fail --location https://build2.org curl -s -S --fail --location --data-binary @- https://build2.org/bogus - curl: (22) The requested URL returned error: 404 Not Found + %curl: \(22\) The requested URL returned error: 404( Not Found)?% EOE } -- cgit v1.1