test1318 941 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. --resolve
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 0
  17. </data>
  18. <data1>
  19. HTTP/1.1 200 second version
  20. Date: Tue, 09 Nov 2010 14:49:00 GMT
  21. Server: test-server/fake
  22. Content-Length: 0
  23. </data1>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP with --resolve and same host name using different cases
  33. </name>
  34. <command>
  35. --resolve MiXeDcAsE.cOm:%HTTPPORT:%HOSTIP http://MiXeDcAsE.cOm:%HTTPPORT/%TESTNUMBER http://mixedcase.com:%HTTPPORT/%TESTNUMBER0001
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. GET /%TESTNUMBER HTTP/1.1
  43. Host: MiXeDcAsE.cOm:%HTTPPORT
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. GET /%TESTNUMBER0001 HTTP/1.1
  47. Host: mixedcase.com:%HTTPPORT
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. </protocol>
  51. </verify>
  52. </testcase>