test17 802 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP custom request
  6. config file
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Funny-head: yesyes
  14. Content-Length: 27
  15. This is the proof it works
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP with config file on stdin
  25. </name>
  26. <stdin>
  27. #
  28. # Use a silly request without '--':
  29. request MOOO
  30. #
  31. # Set the user-agent using a short-option:
  32. -A "agent007 license to drill\t"
  33. #
  34. # long option *with* '--':
  35. --max-time 180
  36. </stdin>
  37. <command>
  38. -K - %HOSTIP:%HTTPPORT/that.site.com/%TESTNUMBER
  39. </command>
  40. </client>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. MOOO /that.site.com/%TESTNUMBER HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. User-Agent: agent007 license to drill
  47. Accept: */*
  48. </protocol>
  49. </verify>
  50. </testcase>