Return to test239 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data |
1.1 ! misho 1: <testcase> ! 2: <info> ! 3: <keywords> ! 4: HTTP ! 5: HTTP POST ! 6: HTTP proxy ! 7: HTTP proxy NTLM auth ! 8: </keywords> ! 9: </info> ! 10: ! 11: # Server-side ! 12: <reply> ! 13: ! 14: # this is returned first since we get no proxy-auth ! 15: <data1001> ! 16: HTTP/1.1 407 Authorization Required to proxy me my dear ! 17: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== ! 18: Content-Length: 34 ! 19: ! 20: Hey you, authenticate or go away! ! 21: </data1001> ! 22: ! 23: # This is supposed to be returned when the server gets the second ! 24: # Authorization: NTLM line passed-in from the client ! 25: <data1002> ! 26: HTTP/1.1 200 Things are fine in proxy land swsclose ! 27: Server: Microsoft-IIS/5.0 ! 28: Content-Type: text/html; charset=iso-8859-1 ! 29: Content-Length: 42 ! 30: ! 31: Contents of that page you requested, sir. ! 32: </data1002> ! 33: ! 34: <datacheck> ! 35: HTTP/1.1 407 Authorization Required to proxy me my dear ! 36: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== ! 37: Content-Length: 34 ! 38: ! 39: HTTP/1.1 200 Things are fine in proxy land swsclose ! 40: Server: Microsoft-IIS/5.0 ! 41: Content-Type: text/html; charset=iso-8859-1 ! 42: Content-Length: 42 ! 43: ! 44: Contents of that page you requested, sir. ! 45: </datacheck> ! 46: </reply> ! 47: ! 48: # Client-side ! 49: <client> ! 50: <server> ! 51: http ! 52: </server> ! 53: <features> ! 54: NTLM ! 55: SSL ! 56: !SSPI ! 57: debug ! 58: proxy ! 59: </features> ! 60: <name> ! 61: HTTP proxy-auth NTLM and then POST ! 62: </name> ! 63: <setenv> ! 64: # we force our own host name, in order to make the test machine independent ! 65: CURL_GETHOSTNAME=curlhost ! 66: # we try to use the LD_PRELOAD hack, if not a debug build ! 67: LD_PRELOAD=%PWD/libtest/.libs/libhostname.so ! 68: </setenv> ! 69: <command> ! 70: http://%HOSTIP:%HTTPPORT/239 --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-ntlm -d "postit" ! 71: </command> ! 72: <precheck> ! 73: chkhostname curlhost ! 74: </precheck> ! 75: </client> ! 76: ! 77: # Verify data after the test has been "shot" ! 78: <verify> ! 79: <strip> ! 80: ^User-Agent: curl/.* ! 81: </strip> ! 82: <protocol nonewline="yes"> ! 83: POST http://%HOSTIP:%HTTPPORT/239 HTTP/1.1 ! 84: Host: %HOSTIP:%HTTPPORT ! 85: Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= ! 86: 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 ! 87: Accept: */* ! 88: Proxy-Connection: Keep-Alive ! 89: Content-Length: 0 ! 90: Content-Type: application/x-www-form-urlencoded ! 91: ! 92: POST http://%HOSTIP:%HTTPPORT/239 HTTP/1.1 ! 93: Host: %HOSTIP:%HTTPPORT ! 94: Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q= ! 95: 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 ! 96: Accept: */* ! 97: Proxy-Connection: Keep-Alive ! 98: Content-Length: 6 ! 99: Content-Type: application/x-www-form-urlencoded ! 100: ! 101: postit ! 102: </protocol> ! 103: </verify> ! 104: </testcase>