test1296 795 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP Basic
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.1 200 OK
  12. Date: Tue, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fake
  14. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  15. ETag: "21025-dc7-39462498"
  16. Accept-Ranges: bytes
  17. Content-Length: 6
  18. Connection: close
  19. Content-Type: text/html
  20. Funny-head: yesyes
  21. -foo-
  22. </data>
  23. </reply>
  24. # Client-side
  25. <client>
  26. <server>
  27. http
  28. </server>
  29. <name>
  30. HTTP URL with %0a in name part
  31. </name>
  32. <command>
  33. http://user%0aname:password@%HOSTIP:%HTTPPORT/%TESTNUMBER
  34. </command>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <protocol>
  39. GET /%TESTNUMBER HTTP/1.1
  40. Host: %HOSTIP:%HTTPPORT
  41. Authorization: Basic dXNlcgpuYW1lOnBhc3N3b3Jk
  42. User-Agent: curl/%VERSION
  43. Accept: */*
  44. </protocol>
  45. </verify>
  46. </testcase>