test1563 665 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <testcase>
  2. <info>
  3. <keywords>
  4. GOPHER
  5. HTTP GET
  6. followlocation
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data1>
  12. HTTP/1.1 302 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Length: 7
  16. Location: gopher://www.example.co.uk
  17. nomnom
  18. </data1>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. <name>
  26. Make sure redirects to CURLPROTO_GOPHER are forbidden by default
  27. </name>
  28. <command>
  29. http://%HOSTIP:%HTTPPORT/15630001 -L -H "Host: www.example.com"
  30. </command>
  31. </client>
  32. <verify>
  33. <strip>
  34. ^User-Agent:.*
  35. </strip>
  36. <errorcode>
  37. 1
  38. </errorcode>
  39. <protocol>
  40. GET /15630001 HTTP/1.1
  41. Host: www.example.com
  42. Accept: */*
  43. </protocol>
  44. </verify>
  45. </testcase>