File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test551
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: # this test is meant to be exactly like 547 but using Digest instead of NTLM
    4: <keywords>
    5: HTTP
    6: HTTP POST
    7: POST callback
    8: HTTP proxy
    9: HTTP proxy Digest auth
   10: </keywords>
   11: </info>
   12: 
   13: # Server-side
   14: <reply>
   15: 
   16: # as a bonus, ww use an excessive nonce length
   17: <data>
   18: HTTP/1.1 407 Authorization Required swsclose
   19: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
   20: Proxy-Authenticate: Digest realm="something fun to read", nonce="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
   21: Content-Type: text/html; charset=iso-8859-1
   22: Connection: close
   23: 
   24: This is not the real page
   25: </data>
   26: 
   27: # This is supposed to be returned when the server gets the Digest
   28: # Authorization: line passed-in from the client
   29: <data1000>
   30: HTTP/1.1 200 Things are fine in proxy land swsclose
   31: Server: Microsoft-IIS/5.0
   32: Content-Type: text/html; charset=iso-8859-1
   33: Content-Length: 42
   34: 
   35: Contents of that page you requested, sir.
   36: </data1000>
   37: 
   38: <datacheck>
   39: HTTP/1.1 407 Authorization Required swsclose
   40: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
   41: Proxy-Authenticate: Digest realm="something fun to read", nonce="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
   42: Content-Type: text/html; charset=iso-8859-1
   43: Connection: close
   44: 
   45: HTTP/1.1 200 Things are fine in proxy land swsclose
   46: Server: Microsoft-IIS/5.0
   47: Content-Type: text/html; charset=iso-8859-1
   48: Content-Length: 42
   49: 
   50: Contents of that page you requested, sir.
   51: </datacheck>
   52: </reply>
   53: 
   54: # Client-side
   55: <client>
   56: <server>
   57: http
   58: </server>
   59: # tool to use
   60: <tool>
   61: lib547
   62: </tool>
   63: <features>
   64: !SSPI
   65: crypto
   66: proxy
   67: </features>
   68:  <name>
   69: HTTP proxy auth Digest with POST data from read callback
   70:  </name>
   71:  <command>
   72: http://test.remote.example.com/path/551 http://%HOSTIP:%HTTPPORT s1lly:pers0n
   73: </command>
   74: </client>
   75: 
   76: # Verify data after the test has been "shot"
   77: <verify>
   78: <strip>
   79: ^User-Agent: curl/.*
   80: </strip>
   81: <protocol>
   82: POST http://test.remote.example.com/path/551 HTTP/1.1
   83: Host: test.remote.example.com
   84: Accept: */*
   85: Proxy-Connection: Keep-Alive
   86: Content-Length: 36
   87: Content-Type: application/x-www-form-urlencoded
   88: 
   89: this is the blurb we want to upload
   90: POST http://test.remote.example.com/path/551 HTTP/1.1
   91: Host: test.remote.example.com
   92: Proxy-Authorization: Digest username="s1lly", realm="something fun to read", nonce="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", uri="/path/551", response="3325240726fbdaf1e61f3a0dd40b930c"
   93: Accept: */*
   94: Proxy-Connection: Keep-Alive
   95: Content-Length: 36
   96: Content-Type: application/x-www-form-urlencoded
   97: 
   98: this is the blurb we want to upload
   99: </protocol>
  100: </verify>
  101: </testcase>

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