mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05:00
test proxy CONNECT requiring basic auth but we don't provide any
This commit is contained in:
parent
2f9f843e8a
commit
50e690f2dd
@ -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
|
||||
|
42
tests/data/test94
Normal file
42
tests/data/test94
Normal file
@ -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>
|
Loading…
x
Reference in New Issue
Block a user