Annotation of embedaddon/curl/tests/data/test590, revision 1.1
1.1 ! misho 1: <testcase>
! 2: <info>
! 3: <keywords>
! 4: HTTP
! 5: HTTP POST
! 6: POST callback
! 7: HTTP proxy
! 8: HTTP proxy NTLM auth
! 9: </keywords>
! 10: </info>
! 11: # Server-side
! 12: <reply>
! 13:
! 14: <data>
! 15: HTTP/1.1 407 Authorization Required swsclose
! 16: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
! 17: Proxy-Authenticate: Negotiate
! 18: Proxy-Authenticate: NTLM
! 19: Content-Type: text/html; charset=iso-8859-1
! 20: Connection: close
! 21:
! 22: This is not the real page
! 23: </data>
! 24:
! 25: # this is returned first since we get no proxy-auth
! 26: <data1001>
! 27: HTTP/1.1 407 Authorization Required to proxy me my dear
! 28: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
! 29: Content-Length: 34
! 30:
! 31: Hey you, authenticate or go away!
! 32: </data1001>
! 33:
! 34: # This is supposed to be returned when the server gets the second
! 35: # Authorization: NTLM line passed-in from the client
! 36: <data1002>
! 37: HTTP/1.1 200 Things are fine in proxy land swsclose
! 38: Server: Microsoft-IIS/5.0
! 39: Content-Type: text/html; charset=iso-8859-1
! 40: Content-Length: 42
! 41:
! 42: Contents of that page you requested, sir.
! 43: </data1002>
! 44:
! 45: <datacheck>
! 46: HTTP/1.1 407 Authorization Required swsclose
! 47: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
! 48: Proxy-Authenticate: Negotiate
! 49: Proxy-Authenticate: NTLM
! 50: Content-Type: text/html; charset=iso-8859-1
! 51: Connection: close
! 52:
! 53: HTTP/1.1 407 Authorization Required to proxy me my dear
! 54: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
! 55: Content-Length: 34
! 56:
! 57: HTTP/1.1 200 Things are fine in proxy land swsclose
! 58: Server: Microsoft-IIS/5.0
! 59: Content-Type: text/html; charset=iso-8859-1
! 60: Content-Length: 42
! 61:
! 62: Contents of that page you requested, sir.
! 63: </datacheck>
! 64: </reply>
! 65:
! 66: # Client-side
! 67: <client>
! 68: <server>
! 69: http
! 70: </server>
! 71: # tool to use
! 72: <tool>
! 73: lib590
! 74: </tool>
! 75: <features>
! 76: NTLM
! 77: SSL
! 78: !SSPI
! 79: debug
! 80: proxy
! 81: </features>
! 82: <name>
! 83: HTTP proxy offers Negotiate+NTLM, use only NTLM
! 84: </name>
! 85: <setenv>
! 86: # we force our own host name, in order to make the test machine independent
! 87: CURL_GETHOSTNAME=curlhost
! 88: # we try to use the LD_PRELOAD hack, if not a debug build
! 89: LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
! 90: </setenv>
! 91: <command>
! 92: http://test.remote.example.com/path/590 http://%HOSTIP:%HTTPPORT
! 93: </command>
! 94: <precheck>
! 95: chkhostname curlhost
! 96: </precheck>
! 97: </client>
! 98:
! 99: # Verify data after the test has been "shot"
! 100: <verify>
! 101: <strip>
! 102: ^User-Agent: curl/.*
! 103: </strip>
! 104: <protocol>
! 105: GET http://test.remote.example.com/path/590 HTTP/1.1
! 106: Host: test.remote.example.com
! 107: User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
! 108: Accept: */*
! 109: Proxy-Connection: Keep-Alive
! 110:
! 111: GET http://test.remote.example.com/path/590 HTTP/1.1
! 112: Host: test.remote.example.com
! 113: Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
! 114: User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
! 115: Accept: */*
! 116: Proxy-Connection: Keep-Alive
! 117:
! 118: GET http://test.remote.example.com/path/590 HTTP/1.1
! 119: Host: test.remote.example.com
! 120: Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAAAgACAHAAAAAIAAgAcgAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAAIWYOdZV0iKA8ytf+dU+Bz9TpMJ4mBKu221lY3VybGhvc3Q=
! 121: User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
! 122: Accept: */*
! 123: Proxy-Connection: Keep-Alive
! 124:
! 125: </protocol>
! 126: </verify>
! 127: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>