header_test
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:9k
源码类别:

手机WAP编程

开发平台:

WINDOWS

  1. | Accept: */*
  2. | Accept: text/*
  3. | Accept: text/html
  4. < Accept: */*; q=0.5, text/html; level =1; q=0.8 ;foo=bar
  5. > Accept: */*; q=0.5
  6. > Accept: text/html; level=1; q=0.8; foo=bar
  7. < Accept: application/vnd.wap.something; charset = iso-8859-1; q=1.0
  8. > Accept: application/vnd.wap.something; charset=iso-8859-1
  9. # Test Constrained-charset
  10. | Accept-Charset: iso-8859-5
  11. # Test general form with unknown charset and q-value
  12. | Accept-Charset: unicode-1-1; q=0.8
  13. # Test general form with known charset > MAX_SHORT_INTEGER
  14. | Accept-Charset: big5
  15. < Accept-Charset: big5; q  =0.900
  16. > Accept-Charset: big5; q=0.9
  17. < Accept-Charset: big5; q  =1.000
  18. > Accept-Charset: big5
  19. # Test general form with known charset and q-value
  20. < Accept-Charset: us-ascii;q=0
  21. > Accept-Charset: us-ascii; q=0.0
  22. < Accept-encoding: compress, gzip
  23. > Accept-Encoding: compress
  24. > Accept-Encoding: gzip
  25. < Accept-encoding: 
  26. | Accept-Encoding: *
  27. < Accept-encoding: compress;q=0.5, gzip;q=1.0
  28. # WSP cannot encode q-values with accept-encoding.
  29. > Accept-Encoding: compress
  30. > Accept-Encoding: gzip
  31. < Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0
  32. > Accept-Encoding: gzip
  33. > Accept-Encoding: identity
  34. # Since WSP cannot encode q-values here, the *;q=0 entry is skipped.
  35. < Accept-language: da, en-gb;q=0.8, en;q=0.7
  36. > Accept-Language: da
  37. > Accept-Language: en-gb; q=0.8
  38. > Accept-Language: en; q=0.7
  39. | Accept-Language: zx
  40. | Accept-Language: *; q=0.0
  41. | Accept-Language: zx; q=0.6
  42. # Test language with code > MAX_SHORT_INTEGER
  43. | Accept-Language: vo
  44. | Accept-Language: vo; q=0.003
  45. | Accept-Ranges: bytes
  46. < Accept-Ranges: Bytes
  47. > Accept-Ranges: bytes
  48. | Accept-Ranges: none
  49. | Accept-Ranges: foo
  50. | Age: 5868
  51. | Age: 2147483647
  52. < Allow: GET, head, PUT
  53. > Allow: GET
  54. > Allow: HEAD
  55. > Allow: PUT
  56. | Allow: something
  57. < Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==, Digest username = "frank", uri= "http://somewhere.org/test;q=0.4", realm ="No, where; near", Digest username = "peter", opaque = "something else; see?", testing = "bla"
  58. > Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
  59. > Authorization: Digest username="frank", uri="http://somewhere.org/test;q=0.4", realm="No, where; near"
  60. > Authorization: Digest username="peter", opaque="something else; see?", testing="bla"
  61. # Some entries are commented out, pending a query about the grammar.
  62. < Cache-Control: no-cache, no-store, max-age=5000, max-age=0, max-age=2147483647
  63. > Cache-Control: no-cache
  64. > Cache-Control: no-store
  65. > Cache-Control: max-age=5000
  66. > Cache-Control: max-age=0
  67. > Cache-Control: max-age=2147483647
  68. < Cache-Control: max-stale, max-stale=5000, max-stale=0, max-stale=2147483647
  69. > Cache-Control: max-stale
  70. > Cache-Control: max-stale=5000
  71. > Cache-Control: max-stale=0
  72. > Cache-Control: max-stale=2147483647
  73. < Cache-Control: min-fresh= 5000, min-fresh  =0, min-fresh=  2147483647
  74. > Cache-Control: min-fresh=5000
  75. > Cache-Control: min-fresh=0
  76. > Cache-Control: min-fresh=2147483647
  77. < Cache-Control: no-transform, only-if-cached
  78. > Cache-Control: no-transform
  79. > Cache-Control: only-if-cached
  80. #< Cache-Control: foo = bar
  81. #> Cache-Control: foo=bar
  82. #< Cache-Control: gnu = "Debian GNU/Linux; potato's revenge"
  83. #> Cache-Control: gnu="Debian GNU/Linux; potato's revenge"
  84. < Cache-Control: public, private = "Allow, Content-length", private = "foo"
  85. > Cache-Control: public
  86. > Cache-Control: private="Allow, Content-Length"
  87. > Cache-Control: private="foo"
  88. < Cache-Control: private="*", no-cache="Accept-Language, *", no-store
  89. > Cache-Control: private="*"
  90. > Cache-Control: no-cache="Accept-Language, *"
  91. > Cache-Control: no-store
  92. < Cache-Control: no-transform, must-revalidate, proxy-revalidate
  93. > Cache-Control: no-transform
  94. > Cache-Control: must-revalidate
  95. > Cache-Control: proxy-revalidate
  96. #< Cache-Control: s-maxage=5000, s-maxage=0, s-maxage=2147483647
  97. #> Cache-Control: s-maxage=5000
  98. #> Cache-Control: s-maxage=0
  99. #> Cache-Control: s-maxage=2147483647
  100. | Cache-Control: foo
  101. | Connection: close
  102. < Connection: X-WAP-TOD, content-length
  103. > Connection: X-WAP-TOD
  104. > Connection: content-length
  105. | Content-Base: http://foo.org/bar;foo,bar
  106. | Content-Encoding: gzip
  107. < Content-Encoding: compress;q=0.5, gzip;q=1.0
  108. > Content-Encoding: compress;q=0.5
  109. > Content-Encoding: gzip;q=1.0
  110. < Content-Language: mi, en
  111. > Content-Language: mi
  112. > Content-Language: en
  113. | Content-Language: zx
  114. | Content-Length: 5000
  115. | Content-Location: file://etc/passwd
  116. | Content-MD5: IgVS2+4DTgdCvoq1jRif1w==
  117. # We don't have decode support for Content-Range.
  118. #| Content-Range: bytes 50-100/2000
  119. # WSP grammar cannot encode the * entries anyway.
  120. #| Content-Range: bytes 50-100/*
  121. #| Content-Range: bytes */50
  122. #| Content-Range: bytes */*
  123. < Content-Type: text/html; charset=ISO-8859-4
  124. > Content-Type: text/html; charset=iso-8859-4
  125. | Date: Tue, 15 Nov 1994 08:12:31 GMT
  126. < Date: Sunday, 06-Nov-94 08:49:37 GMT
  127. > Date: Sun, 06 Nov 1994 08:49:37 GMT
  128. < Date: Sun Nov  6 08:49:37 1994
  129. > Date: Sun, 06 Nov 1994 08:49:37 GMT
  130. | Etag: "floop"
  131. | Etag: W/"xyzzy"
  132. | Etag: ""
  133. | Expires: Tue, 15 Nov 1994 08:12:31 GMT
  134. < Expires: Sunday, 06-Nov-94 08:49:37 GMT
  135. > Expires: Sun, 06 Nov 1994 08:49:37 GMT
  136. < Expires: Sun Nov  6 08:49:37 1994
  137. > Expires: Sun, 06 Nov 1994 08:49:37 GMT
  138. | From: devel@kannel.org
  139. | Host: www.kannel.org
  140. | If-Match: *
  141. | If-Match: W/"xyzzy"
  142. | If-Match: "foobar"
  143. | If-Modified-Since: Tue, 15 Nov 1994 08:12:31 GMT
  144. < If-Modified-Since: Sunday, 06-Nov-94 08:49:37 GMT
  145. > If-Modified-Since: Sun, 06 Nov 1994 08:49:37 GMT
  146. < If-Modified-Since: Sun Nov  6 08:49:37 1994
  147. > If-Modified-Since: Sun, 06 Nov 1994 08:49:37 GMT
  148. | If-None-Match: *
  149. | If-None-Match: W/"xyzzy"
  150. | If-None-Match: "foobar"
  151. | If-Range: W/"xyzzy"
  152. | If-Range: "foobar"
  153. | If-Range: Tue, 15 Nov 1994 08:12:31 GMT
  154. < If-Range: Sunday, 06-Nov-94 08:49:37 GMT
  155. > If-Range: Sun, 06 Nov 1994 08:49:37 GMT
  156. < If-Range: Sun Nov  6 08:49:37 1994
  157. > If-Range: Sun, 06 Nov 1994 08:49:37 GMT
  158. | If-Unmodified-Since: Tue, 15 Nov 1994 08:12:31 GMT
  159. < If-Unmodified-Since: Sunday, 06-Nov-94 08:49:37 GMT
  160. > If-Unmodified-Since: Sun, 06 Nov 1994 08:49:37 GMT
  161. < If-Unmodified-Since: Sun Nov  6 08:49:37 1994
  162. > If-Unmodified-Since: Sun, 06 Nov 1994 08:49:37 GMT
  163. | Last-Modified: Tue, 15 Nov 1994 08:12:31 GMT
  164. < Last-Modified: Sunday, 06-Nov-94 08:49:37 GMT
  165. > Last-Modified: Sun, 06 Nov 1994 08:49:37 GMT
  166. < Last-Modified: Sun Nov  6 08:49:37 1994
  167. > Last-Modified: Sun, 06 Nov 1994 08:49:37 GMT
  168. | Location: http://www.kannel.org/status.shtml
  169. | Max-Forwards: 50
  170. | Pragma: no-cache
  171. | Pragma: foo=bar
  172. < Pragma: gnu="nasty; string, "tester", bar=foo
  173. > Pragma: gnu="nasty; string, "tester"
  174. > Pragma: bar=foo
  175. < Proxy-Authenticate: Basic realm="WallyWorld", Digest uri= "http://somewhere.org/test;q=0.4", realm ="No, where; near", Digest username = "peter", opaque = "something else; see?", testing = "bla", realm = "need one"
  176. > Proxy-Authenticate: Basic realm="WallyWorld"
  177. > Proxy-Authenticate: Digest realm="No, where; near", uri="http://somewhere.org/test;q=0.4"
  178. > Proxy-Authenticate: Digest realm="need one", username="peter", opaque="something else; see?", testing="bla"
  179. < Range: bytes=15-100, 23-42
  180. > Range: bytes = 15-100
  181. > Range: bytes = 23-42
  182. < Range: bytes = -500, -20,-1,0-10
  183. > Range: bytes = -500
  184. > Range: bytes = -20
  185. > Range: bytes = -1
  186. > Range: bytes = 0-10
  187. | Range: bytes = 50-
  188. < Range: bytes = 50-,10-20
  189. > Range: bytes = 50-
  190. > Range: bytes = 10-20
  191. | Referer: foo/bar
  192. | Retry-After: Tue, 15 Nov 1994 08:12:31 GMT
  193. < Retry-After: Sunday, 06-Nov-94 08:49:37 GMT
  194. > Retry-After: Sun, 06 Nov 1994 08:49:37 GMT
  195. < Retry-After: Sun Nov  6 08:49:37 1994
  196. > Retry-After: Sun, 06 Nov 1994 08:49:37 GMT
  197. | Retry-After: 5000
  198. | Server: kannel/2.0
  199. | Transfer-Encoding: chunked
  200. < Transfer-Encoding: foo; level=3; gnu=bar, Chunked, somethingelse
  201. > Transfer-Encoding: foo; level=3; gnu=bar
  202. > Transfer-Encoding: chunked
  203. > Transfer-Encoding: somethingelse
  204. | Upgrade: IRC/6.9
  205. | User-Agent: UP/1.0.1, Mozilla 7.0
  206. < Vary: content-type, content-language
  207. > Vary: Content-Type
  208. > Vary: Content-Language
  209. | Vary: *
  210. < Via: 1.0 ricky, 1.1 ethel, 1.1 fred, 1.0 lucy
  211. > Via: 1.0 ricky
  212. > Via: 1.1 ethel
  213. > Via: 1.1 fred
  214. > Via: 1.0 lucy
  215. | Via: WAP/1.1 localhost
  216. # Warnings are translated from 3-digit codes to 2-digit codes because
  217. # WSP only encodes 2 digits.
  218. < Warning: 110 www.kannel.org "Response is stale" "Tue, 15 Nov 1994 08:12:31 GMT"
  219. > Warning: 10 www.kannel.org "Response is stale"
  220. < Warning: 112 www.kannel.org "Disconnected operation", 299 www.kannel.org "something else"
  221. > Warning: 12 www.kannel.org "Disconnected operation"
  222. > Warning: 99 www.kannel.org "something else"
  223. < WWW-Authenticate: Basic realm="WallyWorld", Digest uri= "http://somewhere.org/test;q=0.4", realm ="No, where; near", Digest username = "peter", opaque = "something else; see?", testing = "bla", realm = "need one"
  224. > WWW-Authenticate: Basic realm="WallyWorld"
  225. > WWW-Authenticate: Digest realm="No, where; near", uri="http://somewhere.org/test;q=0.4"
  226. > WWW-Authenticate: Digest realm="need one", username="peter", opaque="something else; see?", testing="bla"
  227. | Content-Disposition: attachment; name="foo"; filename="foo.jpg"
  228. < Content-Disposition: form-data; differences=content-length; padding=9
  229. > Content-Disposition: form-data; differences=Content-Length; padding=9