test552 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <testcase>
  2. <info>
  3. # this test is meant to be exactly like 551 but is based on the debug code
  4. # submitted in bug report #1850730, which sends >64K data and we verify the
  5. # ioctl rewind callback getting used
  6. <keywords>
  7. HTTP
  8. HTTP POST
  9. POST callback
  10. HTTP proxy
  11. HTTP proxy Digest auth
  12. </keywords>
  13. </info>
  14. # Server-side
  15. <reply>
  16. # as a bonus, ww use an excessive nonce length
  17. <data>
  18. HTTP/1.1 407 Authorization Required swsclose
  19. Server: Apache/1.3.27 (Darwin) PHP/4.1.2
  20. Proxy-Authenticate: Digest realm="something fun to read", nonce="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  21. Content-Type: text/html; charset=iso-8859-1
  22. Connection: close
  23. This is not the real page
  24. </data>
  25. # This is supposed to be returned when the server gets the Digest
  26. # Authorization: line passed-in from the client
  27. <data1000>
  28. HTTP/1.1 200 Things are fine in proxy land swsclose
  29. Server: Microsoft-IIS/5.0
  30. Content-Type: text/html; charset=iso-8859-1
  31. Content-Length: 42
  32. Contents of that page you requested, sir.
  33. </data1000>
  34. <datacheck>
  35. APPLICATION received a CURLIOCMD_RESTARTREAD request
  36. APPLICATION ** REWINDING! **
  37. Contents of that page you requested, sir.
  38. </datacheck>
  39. </reply>
  40. # Client-side
  41. <client>
  42. <server>
  43. http
  44. </server>
  45. # tool to use
  46. <tool>
  47. lib%TESTNUMBER
  48. </tool>
  49. <features>
  50. !SSPI
  51. crypto
  52. proxy
  53. </features>
  54. <name>
  55. HTTP proxy auth Digest with 70K POST data from read callback
  56. </name>
  57. <command>
  58. http://test.remote.example.com/path/%TESTNUMBER http://s1lly:pers0n@%HOSTIP:%HTTPPORT/
  59. </command>
  60. </client>
  61. # Verify data after the test has been "shot"
  62. <verify>
  63. <protocol nonewline="yes">
  64. POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
  65. Host: test.remote.example.com
  66. Accept: */*
  67. Proxy-Connection: Keep-Alive
  68. Content-Length: 70000
  69. Content-Type: application/x-www-form-urlencoded
  70. %repeat[7000 x test data%00]%POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
  71. Host: test.remote.example.com
  72. Proxy-Authorization: Digest username="s1lly", realm="something fun to read", nonce="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", uri="/path/%TESTNUMBER", response="be7aedc47d821b6d847c445ded782c43"
  73. Accept: */*
  74. Proxy-Connection: Keep-Alive
  75. Content-Length: 70000
  76. Content-Type: application/x-www-form-urlencoded
  77. %repeat[7000 x test data%00]%
  78. </protocol>
  79. </verify>
  80. </testcase>