test40 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. followlocation
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 302 OK swsclose
  14. Location: ../moo.html/?name=d a niel&testcase=/400002
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Connection: close
  17. </data>
  18. <data2>
  19. HTTP/1.1 200 OK swsclose
  20. Location: this should be ignored
  21. Date: Thu, 09 Nov 2010 14:49:00 GMT
  22. Connection: close
  23. body
  24. </data2>
  25. <datacheck>
  26. HTTP/1.1 302 OK swsclose
  27. Location: ../moo.html/?name=d a niel&testcase=/400002
  28. Date: Thu, 09 Nov 2010 14:49:00 GMT
  29. Connection: close
  30. HTTP/1.1 200 OK swsclose
  31. Location: this should be ignored
  32. Date: Thu, 09 Nov 2010 14:49:00 GMT
  33. Connection: close
  34. body
  35. </datacheck>
  36. </reply>
  37. #
  38. # Client-side
  39. <client>
  40. <server>
  41. http
  42. </server>
  43. <name>
  44. HTTP redirect with whitespace after ? (and conversion)
  45. </name>
  46. <command>
  47. http://%HOSTIP:%HTTPPORT/we/are/all/twits/40 -L
  48. </command>
  49. </client>
  50. #
  51. # Verify data after the test has been "shot"
  52. <verify>
  53. <strip>
  54. ^User-Agent:.*
  55. </strip>
  56. <protocol>
  57. GET /we/are/all/twits/40 HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. Accept: */*
  60. GET /we/are/all/moo.html/?name=d+a+niel&testcase=/400002 HTTP/1.1
  61. User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3
  62. Host: %HOSTIP:%HTTPPORT
  63. Accept: */*
  64. </protocol>
  65. </verify>
  66. </testcase>