From 50e690f2dda2e5e0563ecb5f740f1d7e9a118058 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 24 Nov 2003 16:17:18 +0000
Subject: [PATCH] test proxy CONNECT requiring basic auth but we don't provide
 any

---
 tests/data/Makefile.am |  2 +-
 tests/data/test94      | 42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletion(-)
 create mode 100644 tests/data/test94

diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 54614f5ad0..14f57aa071 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -24,4 +24,4 @@ test62 test63 test64 test65 test66 test144 test145 test67 test68 test41 \
 test40 test42 test69 test70 test71 test72 test73 test146 test505 \
 test74 test75 test76 test77 test78 test147 test148 test506 test79 test80 \
 test81 test82 test83 test84 test85 test86 test87 test507 test149 test88 \
-test89 test90 test508 test91 test92 test203 test93
+test89 test90 test508 test91 test92 test203 test93 test94
diff --git a/tests/data/test94 b/tests/data/test94
new file mode 100644
index 0000000000..4a9b186894
--- /dev/null
+++ b/tests/data/test94
@@ -0,0 +1,42 @@
+#
+# Server-side
+<reply>
+<data nocheck=1>
+HTTP/1.1 407 Needs proxy authentication
+Server: test-server/fake swsclose yesyes
+Proxy-Authenticate: Basic "oh please"
+Connection: close
+
+bing
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+ <name>
+HTTPS GET with failed proxy auth
+ </name>
+ <command>
+https://test.anything.really.com:94 -x %HOSTIP:%HOSTPORT
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+56
+</errorcode>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+CONNECT test.anything.really.com:94 HTTP/1.0
+User-Agent: curl/7.11.0-CVS (i686-pc-linux-gnu) libcurl/7.11.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4
+
+</protocol>
+</verify>
-- 
GitLab