test48 773 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP HEAD
  6. -G
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <servercmd>
  13. connection-monitor
  14. </servercmd>
  15. <data>
  16. HTTP/1.1 200 OK
  17. Date: Tue, 09 Nov 2010 14:49:00 GMT
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP with -d and -G and -I
  28. </name>
  29. <command>
  30. -d "foo=moo&moo=poo" http://%HOSTIP:%HTTPPORT/%TESTNUMBER -G -I http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  31. </command>
  32. </client>
  33. #
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <protocol>
  37. HEAD /%TESTNUMBER?foo=moo&moo=poo HTTP/1.1
  38. Host: %HOSTIP:%HTTPPORT
  39. User-Agent: curl/%VERSION
  40. Accept: */*
  41. HEAD /%TESTNUMBER?foo=moo&moo=poo HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. User-Agent: curl/%VERSION
  44. Accept: */*
  45. [DISCONNECT]
  46. </protocol>
  47. </verify>
  48. </testcase>