Annotation of embedaddon/curl/tests/data/test317, revision 1.1.1.1

1.1       misho       1: <testcase>
                      2: <info>
                      3: <keywords>
                      4: HTTP
                      5: HTTP proxy
                      6: HTTP Basic auth
                      7: HTTP proxy Basic auth
                      8: followlocation
                      9: </keywords>
                     10: </info>
                     11: #
                     12: # Server-side
                     13: <reply>
                     14: <data>
                     15: HTTP/1.1 302 OK
                     16: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     17: Server: test-server/fake swsclose
                     18: Content-Type: text/html
                     19: Funny-head: yesyes
                     20: Location: http://goto.second.host.now/3170002
                     21: Content-Length: 8
                     22: Connection: close
                     23: 
                     24: contents
                     25: </data>
                     26: <data2>
                     27: HTTP/1.1 200 OK
                     28: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     29: Server: test-server/fake swsclose
                     30: Content-Type: text/html
                     31: Funny-head: yesyes
                     32: Content-Length: 9
                     33: 
                     34: contents
                     35: </data2>
                     36: 
                     37: <datacheck>
                     38: HTTP/1.1 302 OK
                     39: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     40: Server: test-server/fake swsclose
                     41: Content-Type: text/html
                     42: Funny-head: yesyes
                     43: Location: http://goto.second.host.now/3170002
                     44: Content-Length: 8
                     45: Connection: close
                     46: 
                     47: HTTP/1.1 200 OK
                     48: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     49: Server: test-server/fake swsclose
                     50: Content-Type: text/html
                     51: Funny-head: yesyes
                     52: Content-Length: 9
                     53: 
                     54: contents
                     55: </datacheck>
                     56: </reply>
                     57: 
                     58: #
                     59: # Client-side
                     60: <client>
                     61: <server>
                     62: http
                     63: </server>
                     64:  <name>
                     65: HTTP with custom Authorization: and redirect to new host
                     66:  </name>
                     67:  <command>
                     68: http://first.host.it.is/we/want/that/page/317 -x %HOSTIP:%HTTPPORT -H "Authorization: s3cr3t" --proxy-user testing:this --location
                     69: </command>
                     70: <features>
                     71: proxy
                     72: </features>
                     73: </client>
                     74: 
                     75: #
                     76: # Verify data after the test has been "shot"
                     77: <verify>
                     78: <strip>
                     79: ^User-Agent:.*
                     80: </strip>
                     81: <protocol>
                     82: GET http://first.host.it.is/we/want/that/page/317 HTTP/1.1
                     83: Host: first.host.it.is
                     84: Proxy-Authorization: Basic dGVzdGluZzp0aGlz
                     85: Accept: */*
                     86: Proxy-Connection: Keep-Alive
                     87: Authorization: s3cr3t
                     88: 
                     89: GET http://goto.second.host.now/3170002 HTTP/1.1
                     90: Host: goto.second.host.now
                     91: Proxy-Authorization: Basic dGVzdGluZzp0aGlz
                     92: Accept: */*
                     93: Proxy-Connection: Keep-Alive
                     94: 
                     95: </protocol>
                     96: </verify>
                     97: </testcase>

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