test433 791 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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="%LOGDIR/.curlrc">
  21. --next
  22. header = "a: a"
  23. data = "curlrc read"
  24. </file1>
  25. <server>
  26. http
  27. </server>
  28. <setenv>
  29. XDG_CONFIG_HOME=%PWD/%LOGDIR
  30. HOME=
  31. CURL_HOME=
  32. </setenv>
  33. <name>
  34. Verify XDG_CONFIG_HOME use to find .curlrc
  35. </name>
  36. <command>
  37. %HOSTIP:%HTTPPORT/%TESTNUMBER
  38. </command>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol nonewline="yes">
  44. POST /%TESTNUMBER HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. User-Agent: curl/%VERSION
  47. Accept: */*
  48. a: a
  49. Content-Length: 11
  50. Content-Type: application/x-www-form-urlencoded
  51. curlrc read
  52. </protocol>
  53. </verify>
  54. </testcase>