test346 910 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. proxy
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  16. ETag: "21025-dc7-39462498"
  17. Accept-Ranges: bytes
  18. Content-Length: 6
  19. Connection: close
  20. Content-Type: text/html
  21. Funny-head: yesyes
  22. -foo-
  23. </data>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <features>
  29. proxy
  30. </features>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. HTTP GET over proxy with credentials using blank passwords
  36. </name>
  37. <command>
  38. -x http://%HOSTIP:%HTTPPORT/%TESTNUMBER -U puser: -u suser: http://remote.example/%TESTNUMBER
  39. </command>
  40. </client>
  41. #
  42. <verify>
  43. <protocol>
  44. GET http://remote.example/%TESTNUMBER HTTP/1.1
  45. Host: remote.example
  46. Proxy-Authorization: Basic cHVzZXI6
  47. Authorization: Basic c3VzZXI6
  48. User-Agent: curl/%VERSION
  49. Accept: */*
  50. Proxy-Connection: Keep-Alive
  51. </protocol>
  52. </verify>
  53. </testcase>