File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test206
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 CONNECT
    7: HTTP proxy
    8: proxytunnel
    9: HTTP proxy Digest auth
   10: </keywords>
   11: </info>
   12: 
   13: # Server-side
   14: <reply>
   15: <servercmd>
   16: connection-monitor
   17: auth_required
   18: </servercmd>
   19: 
   20: 
   21: # this is returned first since we get no proxy-auth
   22: <connect>
   23: HTTP/1.1 407 Authorization Required to proxy me my dear
   24: Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
   25: Content-Length: 33
   26: 
   27: And you should ignore this data.
   28: </connect>
   29: 
   30: # this is returned when we get a GET!
   31: <data2>
   32: HTTP/1.1 200 OK
   33: Date: Thu, 09 Nov 2010 14:49:00 GMT
   34: Content-Length: 7
   35: Connection: close
   36: Content-Type: text/html
   37: Funny-head: yesyes
   38: 
   39: daniel
   40: </data2>
   41: 
   42: # then this is returned when we get proxy-auth
   43: <connect1000>
   44: HTTP/1.1 200 OK swsbounce
   45: Server: no
   46: 
   47: </connect1000>
   48: 
   49: <datacheck>
   50: HTTP/1.1 407 Authorization Required to proxy me my dear
   51: Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
   52: Content-Length: 33
   53: 
   54: HTTP/1.1 200 OK swsbounce
   55: Server: no
   56: 
   57: HTTP/1.1 200 OK
   58: Date: Thu, 09 Nov 2010 14:49:00 GMT
   59: Content-Length: 7
   60: Connection: close
   61: Content-Type: text/html
   62: Funny-head: yesyes
   63: 
   64: daniel
   65: </datacheck>
   66: </reply>
   67: 
   68: # Client-side
   69: <client>
   70: <server>
   71: http
   72: </server>
   73: <features>
   74: !SSPI
   75: crypto
   76: proxy
   77: </features>
   78:  <name>
   79: HTTP proxy CONNECT auth Digest
   80:  </name>
   81:  <command>
   82: http://test.remote.haxx.se.206:8990/path/2060002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
   83: </command>
   84: </client>
   85: 
   86: # Verify data after the test has been "shot"
   87: <verify>
   88: <strip>
   89: ^User-Agent: curl/.*
   90: </strip>
   91: <protocol>
   92: CONNECT test.remote.haxx.se.206:8990 HTTP/1.1
   93: Host: test.remote.haxx.se.206:8990
   94: Proxy-Connection: Keep-Alive
   95: 
   96: CONNECT test.remote.haxx.se.206:8990 HTTP/1.1
   97: Host: test.remote.haxx.se.206:8990
   98: Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.206:8990", response="003e36decb4dbf6366b3ecb9b87c24ec"
   99: Proxy-Connection: Keep-Alive
  100: 
  101: GET /path/2060002 HTTP/1.1
  102: User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
  103: Host: test.remote.haxx.se.206:8990
  104: Accept: */*
  105: 
  106: [DISCONNECT]
  107: </protocol>
  108: </verify>
  109: </testcase>

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