test1097 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP CONNECT
  7. HTTP proxy
  8. HTTP proxy NTLM auth
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 200 We are fine and cool
  15. Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
  16. Content-Length: 27
  17. This is all fine and dandy
  18. </data>
  19. <connect1001>
  20. HTTP/1.1 200 We are fine and cool
  21. Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
  22. Content-Length: 27
  23. This is all fine and dandy
  24. </connect1001>
  25. <datacheck>
  26. HTTP/1.1 200 We are fine and cool
  27. Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
  28. Content-Length: 27
  29. HTTP/1.1 200 We are fine and cool
  30. Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
  31. Content-Length: 27
  32. This is all fine and dandy
  33. </datacheck>
  34. </reply>
  35. # Client-side
  36. <client>
  37. <server>
  38. https
  39. </server>
  40. <features>
  41. NTLM
  42. !SSPI
  43. </features>
  44. <name>
  45. HTTP POST using CONNECT with --proxy-ntlm but no auth is required
  46. </name>
  47. <command>
  48. http://test.a.galaxy.far.far.away.1097:%HTTPPORT/1097 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -d "dummy=value" -p
  49. </command>
  50. </client>
  51. # Verify data after the test has been "shot"
  52. <verify>
  53. <strip>
  54. ^User-Agent: curl/.*
  55. </strip>
  56. <protocol>
  57. CONNECT test.a.galaxy.far.far.away.1097:%HTTPPORT HTTP/1.1
  58. Host: test.a.galaxy.far.far.away.1097:%HTTPPORT
  59. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  60. User-Agent: curl/7.19.5-CVS (i686-pc-linux-gnu) libcurl/7.19.5-CVS OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.6.1-CVS libidn/1.12 libssh2/1.0.1_CVS
  61. Proxy-Connection: Keep-Alive
  62. POST /1097 HTTP/1.1
  63. User-Agent: curl/7.19.5-CVS (i686-pc-linux-gnu) libcurl/7.19.5-CVS OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.6.1-CVS libidn/1.12 libssh2/1.0.1_CVS
  64. Host: test.a.galaxy.far.far.away.1097:%HTTPPORT
  65. Accept: */*
  66. Content-Length: 0
  67. Content-Type: application/x-www-form-urlencoded
  68. </protocol>
  69. </verify>
  70. </testcase>