test1567 920 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. URL API
  6. CURLOPT_CURLU
  7. CURLOPT_FOLLOWLOCATION
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 302 OK
  14. Content-Length: 6
  15. Location: /%TESTNUMBER0002
  16. -foo-
  17. </data>
  18. <data2>
  19. HTTP/1.1 200 OK
  20. Content-Length: 11
  21. redirected
  22. </data2>
  23. <datacheck>
  24. redirected
  25. redirected
  26. </datacheck>
  27. </reply>
  28. # Client-side
  29. <client>
  30. <server>
  31. http
  32. </server>
  33. # tool is what to use instead of 'curl'
  34. <tool>
  35. lib%TESTNUMBER
  36. </tool>
  37. <name>
  38. re-run redirected transfer without setting CURLU URL again
  39. </name>
  40. <command>
  41. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  42. </command>
  43. </client>
  44. <verify>
  45. <protocol>
  46. GET /%TESTNUMBER HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. Accept: */*
  49. GET /%TESTNUMBER0002 HTTP/1.1
  50. Host: %HOSTIP:%HTTPPORT
  51. Accept: */*
  52. GET /%TESTNUMBER HTTP/1.1
  53. Host: %HOSTIP:%HTTPPORT
  54. Accept: */*
  55. GET /%TESTNUMBER0002 HTTP/1.1
  56. Host: %HOSTIP:%HTTPPORT
  57. Accept: */*
  58. </protocol>
  59. </verify>
  60. </testcase>