File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test162
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 3 10:01:16 2020 UTC (5 years ago) by misho
Branches: curl, MAIN
CVS tags: v7_70_0p4, HEAD
curl

    1: <testcase>
    2: <info>
    3: <keywords>
    4: HTTP
    5: HTTP GET
    6: HTTP proxy
    7: HTTP proxy NTLM auth
    8: FAILURE
    9: </keywords>
   10: </info>
   11: 
   12: # Server-side
   13: <reply>
   14: <data1001 nocheck="yes">
   15: HTTP/1.0 407 BAD BOY
   16: Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
   17: Server: swsclose
   18: Content-Type: text/html
   19: 
   20: Even though it's the response code that triggers authentication, we're
   21: using NTLM and the server isn't, so we should fail.  We know the server
   22: isn't because there's no Proxy-Authorization: NTLM header
   23: </data1001>
   24: </reply>
   25: 
   26: # Client-side
   27: <client>
   28: <features>
   29: NTLM
   30: SSL
   31: !SSPI
   32: proxy
   33: </features>
   34: <server>
   35: http
   36: </server>
   37:  <name>
   38: HTTP GET asking for --proxy-ntlm when some other authentication is required
   39:  </name>
   40:  <command>
   41: http://%HOSTIP:%HTTPPORT/162 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
   42: </command>
   43: </client>
   44: 
   45: # Verify data after the test has been "shot"
   46: <verify>
   47: <strip>
   48: ^User-Agent: curl/.*
   49: </strip>
   50: <protocol>
   51: GET http://%HOSTIP:%HTTPPORT/162 HTTP/1.1
   52: Host: %HOSTIP:%HTTPPORT
   53: Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
   54: User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
   55: Accept: */*
   56: Proxy-Connection: Keep-Alive
   57: 
   58: </protocol>
   59: <errorcode>
   60: 22
   61: </errorcode>
   62: </verify>
   63: </testcase>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>