test436 786 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. --config
  5. </keywords>
  6. </info>
  7. #
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.1 200 OK
  12. Content-Length: 6
  13. Content-Type: text/1
  14. -foo-
  15. </data>
  16. </reply>
  17. #
  18. # Client-side
  19. <client>
  20. <file1 name="log/.config/curlrc">
  21. --next
  22. header = "a: a"
  23. data = "curlrc read"
  24. </file1>
  25. <server>
  26. http
  27. </server>
  28. <setenv>
  29. CURL_HOME=%PWD/log
  30. XDG_CONFIG_HOME=
  31. </setenv>
  32. <name>
  33. Find .curlrc in .config/curlrc via CURL_HOME
  34. </name>
  35. <command>
  36. %HOSTIP:%HTTPPORT/%TESTNUMBER
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol nonewline="yes">
  43. POST /%TESTNUMBER HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. a: a
  48. Content-Length: 11
  49. Content-Type: application/x-www-form-urlencoded
  50. curlrc read
  51. </protocol>
  52. </verify>
  53. </testcase>