c# 使用tcpclient 调用接口得到返回值怎么解析。
HTTP/1.1200OKCache-Control:no-cachePragma:no-cacheContent-Type:application/json;chars...
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: origin,x-requested-with,content-type
Access-Control-Allow-Methods: POST,GET,OPTIONS
Date: Mon, 29 Jun 2015 09:40:49 GMT
Connection: close
Content-Length: 45
"{\"res_code\":\"0\",\"res_message\":\"OK\"}"
只需要得到:"{\"res_code\":\"0\",\"res_message\":\"OK\"}" 展开
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: origin,x-requested-with,content-type
Access-Control-Allow-Methods: POST,GET,OPTIONS
Date: Mon, 29 Jun 2015 09:40:49 GMT
Connection: close
Content-Length: 45
"{\"res_code\":\"0\",\"res_message\":\"OK\"}"
只需要得到:"{\"res_code\":\"0\",\"res_message\":\"OK\"}" 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询