test1150 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. # this is returned when we get a GET!
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Content-Length: 7
  16. Content-Type: text/html
  17. Funny-head: yesyes
  18. daniel
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP proxy with URLs using different ports
  28. </name>
  29. <command>
  30. --proxy http://%HOSTIP:%HTTPPORT http://test.remote.example.com.%TESTNUMBER:150/path http://test.remote.example.com.%TESTNUMBER:1234/path/
  31. </command>
  32. <features>
  33. proxy
  34. </features>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <protocol>
  39. GET http://test.remote.example.com.%TESTNUMBER:150/path HTTP/1.1
  40. Host: test.remote.example.com.%TESTNUMBER:150
  41. User-Agent: curl/%VERSION
  42. Accept: */*
  43. Proxy-Connection: Keep-Alive
  44. GET http://test.remote.example.com.%TESTNUMBER:1234/path/ HTTP/1.1
  45. Host: test.remote.example.com.%TESTNUMBER:1234
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. Proxy-Connection: Keep-Alive
  49. </protocol>
  50. </verify>
  51. </testcase>