test1097 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. # This is the CONNECT response
  20. <connect1001>
  21. HTTP/1.1 200 We are fine and cool
  22. Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
  23. </connect1001>
  24. <datacheck>
  25. HTTP/1.1 200 We are fine and cool
  26. Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
  27. HTTP/1.1 200 We are fine and cool
  28. Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
  29. Content-Length: 27
  30. This is all fine and dandy
  31. </datacheck>
  32. </reply>
  33. # Client-side
  34. <client>
  35. <server>
  36. https
  37. </server>
  38. <features>
  39. NTLM
  40. !SSPI
  41. </features>
  42. <name>
  43. HTTP POST using CONNECT with --proxy-ntlm but no auth is required
  44. </name>
  45. <command>
  46. http://test.a.galaxy.far.far.away.1097:%HTTPPORT/1097 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -d "dummy=value" -p
  47. </command>
  48. </client>
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <strip>
  52. ^User-Agent: curl/.*
  53. </strip>
  54. <protocol>
  55. CONNECT test.a.galaxy.far.far.away.1097:%HTTPPORT HTTP/1.1
  56. Host: test.a.galaxy.far.far.away.1097:%HTTPPORT
  57. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  58. 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
  59. Proxy-Connection: Keep-Alive
  60. POST /1097 HTTP/1.1
  61. 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
  62. Host: test.a.galaxy.far.far.away.1097:%HTTPPORT
  63. Accept: */*
  64. Content-Length: 0
  65. Content-Type: application/x-www-form-urlencoded
  66. </protocol>
  67. </verify>
  68. </testcase>