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