test1097 1.6 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. SSL
  41. !SSPI
  42. proxy
  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.%TESTNUMBER:%HTTPPORT/%TESTNUMBER --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. <protocol nonewline="yes">
  54. CONNECT test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT HTTP/1.1
  55. Host: test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT
  56. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  57. User-Agent: curl/%VERSION
  58. Proxy-Connection: Keep-Alive
  59. POST /%TESTNUMBER HTTP/1.1
  60. Host: test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT
  61. User-Agent: curl/%VERSION
  62. Accept: */*
  63. Content-Length: 11
  64. Content-Type: application/x-www-form-urlencoded
  65. dummy=value
  66. </protocol>
  67. </verify>
  68. </testcase>