test688 894 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. xattr
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Accept-Ranges: bytes
  16. Content-Length: 6
  17. Connection: close
  18. Content-Type: fake/data
  19. -foo-
  20. </data>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. <features>
  29. debug
  30. xattr
  31. </features>
  32. # simulate the xattr operations
  33. <setenv>
  34. CURL_FAKE_XATTR=1
  35. </setenv>
  36. <name>
  37. basic --xattr with -O
  38. </name>
  39. <command>
  40. --xattr -O --output-dir %LOGDIR http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  41. </command>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <protocol>
  47. GET /%TESTNUMBER HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. User-Agent: curl/%VERSION
  50. Accept: */*
  51. </protocol>
  52. <stdout mode="text">
  53. user.mime_type => fake/data
  54. user.xdg.origin.url => http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  55. </stdout>
  56. </verify>
  57. </testcase>