test1630 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTPS-proxy
  7. HTTPS-proxy Basic auth
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Type: text/html
  17. Funny-head: yesyes
  18. Content-Length: 22
  19. the content goes here
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. https-proxy
  27. </server>
  28. <name>
  29. HTTPS-proxy with Basic auth to HTTP without auth
  30. </name>
  31. <command>
  32. -U fake@user:loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong -x https://%HOSTIP:%HTTPSPROXYPORT http://we.want.that.site.com/%TESTNUMBER --proxy-insecure
  33. </command>
  34. <features>
  35. proxy
  36. </features>
  37. </client>
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <proxy>
  41. GET http://we.want.that.site.com/%TESTNUMBER HTTP/1.1
  42. Host: we.want.that.site.com
  43. Proxy-Authorization: Basic ZmFrZUB1c2VyOmxvb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29uZw==
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. Proxy-Connection: Keep-Alive
  47. </proxy>
  48. </verify>
  49. </testcase>