我正在尝试使用php curl下载网页。
php curl工作正常,但服务器正在返回:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 4.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 12 Oct 2015 15:07:21 GMT
Content-Length: 57
System.Collections.Generic.List`1[RepZio.V2Model.Product]
如果我在浏览器中输入相同的网址,则输出不是System.Collections.Generic.List`1 [RepZio.V2Model.Product],而是一个普通的html网页。
如何从System.Collections.Generic.List ...继续到html页面?
答案 0 :(得分:0)
" System.Collections.Generic.List`1 [RepZio.V2Model.Product]"是网页的内容。如果您要在Web浏览器中打开该URL并查看源代码,那就是您将看到的内容。
看起来该网址末尾的页面未能正确地将列表内容正确写入页面。