test977 973 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP proxy
  6. cookies
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 0
  17. Connection: close
  18. Content-Type: text/html
  19. Set-Cookie: a=b; Domain=.me.;
  20. </data>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. <features>
  26. proxy
  27. </features>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. URL with trailing dot and receiving a cookie for the TLD with dot
  33. </name>
  34. <command>
  35. -x http://%HOSTIP:%HTTPPORT http://firsthost.me. -c log/cookies%TESTNUMBER
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <protocol>
  42. GET http://firsthost.me./ HTTP/1.1
  43. Host: firsthost.me.
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. Proxy-Connection: Keep-Alive
  47. </protocol>
  48. <file name="log/cookies%TESTNUMBER" mode="text">
  49. # Netscape HTTP Cookie File
  50. # https://curl.se/docs/http-cookies.html
  51. # This file was generated by libcurl! Edit at your own risk.
  52. </file>
  53. </verify>
  54. </testcase>