test85 966 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP Basic auth
  7. HTTP proxy
  8. HTTP proxy Basic auth
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.1 200 OK
  16. Date: Tue, 09 Nov 2010 14:49:00 GMT
  17. Server: test-server/fake swsclose
  18. Content-Type: text/html
  19. Funny-head: yesyes
  20. Content-Length: 9
  21. contents
  22. </data>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP over proxy with site and proxy authentication
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this
  35. </command>
  36. <features>
  37. proxy
  38. </features>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. GET http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Proxy-Authorization: Basic dGVzdGluZzp0aGlz
  47. Authorization: Basic aWFtOm15c2VsZg==
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. Proxy-Connection: Keep-Alive
  51. </protocol>
  52. </verify>
  53. </testcase>