2
0

test85 1023 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: Thu, 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/85 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <strip>
  41. ^User-Agent:.*
  42. </strip>
  43. <protocol>
  44. GET http://%HOSTIP:%HTTPPORT/we/want/that/page/85 HTTP/1.1
  45. Proxy-Authorization: Basic dGVzdGluZzp0aGlz
  46. Authorization: Basic aWFtOm15c2VsZg==
  47. User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
  48. Host: %HOSTIP:%HTTPPORT
  49. Accept: */*
  50. Proxy-Connection: Keep-Alive
  51. </protocol>
  52. </verify>
  53. </testcase>