Annotation of embedaddon/curl/tests/data/test547, 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: Blackmagic realm="gimme all yer s3cr3ts"
        !            18: Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
        !            19: Proxy-Authenticate: NTLM
        !            20: Content-Type: text/html; charset=iso-8859-1
        !            21: Connection: close
        !            22: 
        !            23: This is not the real page
        !            24: </data>
        !            25: 
        !            26: # this is returned first since we get no proxy-auth
        !            27: <data1001>
        !            28: HTTP/1.1 407 Authorization Required to proxy me my dear
        !            29: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
        !            30: Content-Length: 34
        !            31: 
        !            32: Hey you, authenticate or go away!
        !            33: </data1001>
        !            34: 
        !            35: # This is supposed to be returned when the server gets the second
        !            36: # Authorization: NTLM line passed-in from the client
        !            37: <data1002>
        !            38: HTTP/1.1 200 Things are fine in proxy land swsclose
        !            39: Server: Microsoft-IIS/5.0
        !            40: Content-Type: text/html; charset=iso-8859-1
        !            41: Content-Length: 42
        !            42: 
        !            43: Contents of that page you requested, sir.
        !            44: </data1002>
        !            45: 
        !            46: <datacheck>
        !            47: HTTP/1.1 407 Authorization Required swsclose
        !            48: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
        !            49: Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
        !            50: Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
        !            51: Proxy-Authenticate: NTLM
        !            52: Content-Type: text/html; charset=iso-8859-1
        !            53: Connection: close
        !            54: 
        !            55: HTTP/1.1 407 Authorization Required to proxy me my dear
        !            56: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
        !            57: Content-Length: 34
        !            58: 
        !            59: HTTP/1.1 200 Things are fine in proxy land swsclose
        !            60: Server: Microsoft-IIS/5.0
        !            61: Content-Type: text/html; charset=iso-8859-1
        !            62: Content-Length: 42
        !            63: 
        !            64: Contents of that page you requested, sir.
        !            65: </datacheck>
        !            66: </reply>
        !            67: 
        !            68: # Client-side
        !            69: <client>
        !            70: <server>
        !            71: http
        !            72: </server>
        !            73: # tool to use
        !            74: <tool>
        !            75: lib547
        !            76: </tool>
        !            77: <features>
        !            78: NTLM
        !            79: SSL
        !            80: !SSPI
        !            81: debug
        !            82: proxy
        !            83: </features>
        !            84:  <name>
        !            85: HTTP proxy auth NTLM with POST data from read callback
        !            86:  </name>
        !            87:  <setenv>
        !            88: # we force our own host name, in order to make the test machine independent
        !            89: CURL_GETHOSTNAME=curlhost
        !            90: # we try to use the LD_PRELOAD hack, if not a debug build
        !            91: LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
        !            92:  </setenv>
        !            93:  <command>
        !            94: http://test.remote.example.com/path/547 http://%HOSTIP:%HTTPPORT testuser:testpass
        !            95: </command>
        !            96: <precheck>
        !            97: chkhostname curlhost
        !            98: </precheck>
        !            99: </client>
        !           100: 
        !           101: # Verify data after the test has been "shot"
        !           102: <verify>
        !           103: <strip>
        !           104: ^User-Agent: curl/.*
        !           105: </strip>
        !           106: <protocol>
        !           107: POST http://test.remote.example.com/path/547 HTTP/1.1
        !           108: Host: test.remote.example.com
        !           109: 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
        !           110: Accept: */*
        !           111: Proxy-Connection: Keep-Alive
        !           112: Content-Length: 36
        !           113: Content-Type: application/x-www-form-urlencoded
        !           114: 
        !           115: this is the blurb we want to upload
        !           116: POST http://test.remote.example.com/path/547 HTTP/1.1
        !           117: Host: test.remote.example.com
        !           118: Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
        !           119: 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
        !           120: Accept: */*
        !           121: Proxy-Connection: Keep-Alive
        !           122: Content-Length: 0
        !           123: Content-Type: application/x-www-form-urlencoded
        !           124: 
        !           125: POST http://test.remote.example.com/path/547 HTTP/1.1
        !           126: Host: test.remote.example.com
        !           127: Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
        !           128: 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
        !           129: Accept: */*
        !           130: Proxy-Connection: Keep-Alive
        !           131: Content-Length: 36
        !           132: Content-Type: application/x-www-form-urlencoded
        !           133: 
        !           134: this is the blurb we want to upload
        !           135: </protocol>
        !           136: </verify>
        !           137: </testcase>

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