test97 657 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Server-side
  3. <reply>
  4. <data>
  5. HTTP/1.0 200 OK
  6. Server: test-server/fake
  7. Content-Type: text/html
  8. Content-Length: 6
  9. blaha
  10. </data>
  11. </reply>
  12. #
  13. # Client-side
  14. <client>
  15. <server>
  16. http
  17. </server>
  18. <name>
  19. HTTP POST with custom content-type
  20. </name>
  21. <command>
  22. -d "hejsanallabarn" -H "Content-Type: silly/type" http://%HOSTIP:%HOSTPORT/97
  23. </command>
  24. </test>
  25. #
  26. # Verify data after the test has been "shot"
  27. <verify>
  28. <strip>
  29. ^User-Agent:.*
  30. </strip>
  31. <protocol nonewline=yes>
  32. POST /97 HTTP/1.1
  33. Host: 127.0.0.1:8999
  34. Pragma: no-cache
  35. Accept: */*
  36. Content-Type: silly/type
  37. Content-Length: 14
  38. hejsanallabarn
  39. </protocol>
  40. </verify>