test17 742 B

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