test1213 901 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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: Thu, 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.1213
  34. </command>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <strip>
  39. ^User-Agent:.*
  40. </strip>
  41. <protocol>
  42. GET HTTP://we.want.that.site.com.1213/ HTTP/1.1
  43. Host: we.want.that.site.com.1213
  44. Accept: */*
  45. Proxy-Connection: Keep-Alive
  46. </protocol>
  47. </verify>
  48. </testcase>