extracte code from md to ScalaResults.scala
fix @deprecated discardingCookies usage
fix spec description&application/xml acceptance
Merge pull request #1023 from XuefengWu/fix-doc-discarding-cookies

Fix doc code:ScalaResults.scala