test63 856 B

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