诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

82 lines
1.8 KiB

  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. </features>
  43. <name>
  44. HTTP POST using CONNECT with --proxy-ntlm but no auth is required
  45. </name>
  46. <command>
  47. http://test.a.galaxy.far.far.away.1097:%HTTPPORT/1097 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -d "dummy=value" -p
  48. </command>
  49. </client>
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <strip>
  53. ^User-Agent: curl/.*
  54. </strip>
  55. <protocol>
  56. CONNECT test.a.galaxy.far.far.away.1097:%HTTPPORT HTTP/1.1
  57. Host: test.a.galaxy.far.far.away.1097:%HTTPPORT
  58. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  59. 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
  60. Proxy-Connection: Keep-Alive
  61. POST /1097 HTTP/1.1
  62. 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
  63. Host: test.a.galaxy.far.far.away.1097:%HTTPPORT
  64. Accept: */*
  65. Content-Length: 0
  66. Content-Type: application/x-www-form-urlencoded
  67. </protocol>
  68. </verify>
  69. </testcase>