File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test91
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 NTLM auth
    7: </keywords>
    8: </info>
    9: # Server-side
   10: <reply>
   11: <data>
   12: HTTP/1.1 401 Authorization Required swsclose
   13: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
   14: WWW-Authenticate: Magic-Negotiate
   15: WWW-Authenticate: NTLM
   16: WWW-Authenticate: Basic realm="daniel"
   17: Content-Type: text/html; charset=iso-8859-1
   18: Content-Length: 0
   19: Connection: close
   20: 
   21: </data>
   22: 
   23: # This is supposed to be returned when the server gets a first
   24: # Authorization: NTLM line passed-in from the client
   25: <data1001>
   26: HTTP/1.1 401 Now gimme that second request of crap
   27: Server: Microsoft-IIS/5.0
   28: Content-Length: 34
   29: Content-Type: text/html; charset=iso-8859-1
   30: WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
   31: 
   32: This is not the real page either!
   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 server land swsclose
   39: Server: Microsoft-IIS/5.0
   40: Content-Type: text/html; charset=iso-8859-1
   41: Content-Length: 32
   42: 
   43: Finally, this is the real page!
   44: </data1002>
   45: 
   46: <datacheck>
   47: HTTP/1.1 401 Authorization Required swsclose
   48: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
   49: WWW-Authenticate: Magic-Negotiate
   50: WWW-Authenticate: NTLM
   51: WWW-Authenticate: Basic realm="daniel"
   52: Content-Type: text/html; charset=iso-8859-1
   53: Content-Length: 0
   54: Connection: close
   55: 
   56: HTTP/1.1 401 Now gimme that second request of crap
   57: Server: Microsoft-IIS/5.0
   58: Content-Length: 34
   59: Content-Type: text/html; charset=iso-8859-1
   60: WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
   61: 
   62: HTTP/1.1 200 Things are fine in server land swsclose
   63: Server: Microsoft-IIS/5.0
   64: Content-Type: text/html; charset=iso-8859-1
   65: Content-Length: 32
   66: 
   67: Finally, this is the real page!
   68: </datacheck>
   69: 
   70: </reply>
   71: 
   72: # Client-side
   73: <client>
   74: <features>
   75: NTLM
   76: SSL
   77: !SSPI
   78: debug
   79: </features>
   80: <server>
   81: http
   82: </server>
   83:  <name>
   84: HTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0
   85:  </name>
   86:  <setenv>
   87: # we force our own host name, in order to make the test machine independent
   88: CURL_GETHOSTNAME=curlhost
   89: # we try to use the LD_PRELOAD hack, if not a debug build
   90: LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
   91:  </setenv>
   92:  <command>
   93: http://%HOSTIP:%HTTPPORT/91 --anyauth -u mydomain\\myself:secret
   94: </command>
   95: <precheck>
   96: chkhostname curlhost
   97: </precheck>
   98: </client>
   99: 
  100: # Verify data after the test has been "shot"
  101: <verify>
  102: <strip>
  103: ^User-Agent:.*
  104: </strip>
  105: <protocol>
  106: GET /91 HTTP/1.1
  107: Host: %HOSTIP:%HTTPPORT
  108: User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  109: Accept: */*
  110: 
  111: GET /91 HTTP/1.1
  112: Host: %HOSTIP:%HTTPPORT
  113: Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  114: User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  115: Accept: */*
  116: 
  117: GET /91 HTTP/1.1
  118: Host: %HOSTIP:%HTTPPORT
  119: Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAgACABwAAAABgAGAHgAAAAIAAgAfgAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAAKBS3rdGYZEGsqW8otYHWXWBxC5mCuFmYm15ZG9tYWlubXlzZWxmY3VybGhvc3Q=
  120: User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  121: Accept: */*
  122: 
  123: </protocol>
  124: </verify>
  125: </testcase>

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