test279 830 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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: 27
  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 string including http:// and user only
  27. </name>
  28. <command>
  29. http://we.want.that.site.com/%TESTNUMBER -x http://f%61ke@%HOSTIP:%HTTPPORT
  30. </command>
  31. <features>
  32. proxy
  33. </features>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <protocol>
  38. GET http://we.want.that.site.com/%TESTNUMBER HTTP/1.1
  39. Host: we.want.that.site.com
  40. Proxy-Authorization: Basic ZmFrZTo=
  41. User-Agent: curl/%VERSION
  42. Accept: */*
  43. Proxy-Connection: Keep-Alive
  44. </protocol>
  45. </verify>
  46. </testcase>