test1563 673 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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: Tue, 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/%TESTNUMBER0001 -L -H "Host: www.example.com"
  30. </command>
  31. </client>
  32. <verify>
  33. <errorcode>
  34. 1
  35. </errorcode>
  36. <protocol>
  37. GET /%TESTNUMBER0001 HTTP/1.1
  38. Host: www.example.com
  39. User-Agent: curl/%VERSION
  40. Accept: */*
  41. </protocol>
  42. </verify>
  43. </testcase>