test1213 946 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Type: text/html
  16. Funny-head: yesyes
  17. Content-Length: 22
  18. the content goes here
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP with proxy and host-only URL
  28. </name>
  29. # the thing here is that this sloppy form is accepted and we convert it
  30. # for normal server use, and we need to make sure it gets converted to
  31. # RFC style even for proxies
  32. <command>
  33. -x %HOSTIP:%HTTPPORT we.want.that.site.com.%TESTNUMBER
  34. </command>
  35. <features>
  36. proxy
  37. </features>
  38. </client>
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. GET http://we.want.that.site.com.%TESTNUMBER/ HTTP/1.1
  43. Host: we.want.that.site.com.%TESTNUMBER
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. Proxy-Connection: Keep-Alive
  47. </protocol>
  48. </verify>
  49. </testcase>