none
String 如何解析协议 RRS feed

  • 问题

  • 用String的对象 发现没有find的方法。

    请问用String 如很解析下面的内容呢?

    按照冒号进行分割 谢

    GET /home/ssoindex?logout=1 HTTP/1.1 Host: passport.csdn.net Connection: keep-alive User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Referer: https://passport.csdn.net/account/loginbox?callback=logined&hidethird=1&from=http%3a%2f%2fblog.csdn.net%2fyushuai007008%2farticle%2fdetails%2f7051385 Accept-Encoding: gzip,deflate,sdch Accept-Language: zh-CN,zh;q=0.8 Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3 Cookie: __message_gu_msg_id=0; __message_cnel_msg_id=0; __message_district_code=110000; __message_in_school=0; __message_sys_msg_id=1659; __utma=17226283.589024421.1350465740.1350465740.1350465740.1; __utmb=17226283.3.10.1350465740; __utmc=17226283; __utmz=17226283.1350465740.1.1.utmcsr=google.com|utmccn=(referral)|utmcmd=referral|utmcct=/

    2012年10月17日 9:56

答案

全部回复