我正在尝试使用 PHP 的 fsockopen() 发送/接收请求。
我只是想问一下不同类型的HTTP 方法所需的标头是什么?
这些是 Google 的响应标头
HTTP/1.0 200 OK =>
Date => Mon, 14 Jan 2013 08:21:29 GMT
Expires => -1
Cache-Control => private, max-age=0
Content-Type => text/html; charset=ISO-8859-1
Set-Cookie => NID=67=LI2GVi9aUXjLjdpqEs4zbEwYAWmMsW_5CQBWKeR-cohs2CLBSGN7rXqFplRNGxiF2oOZpGWR1mvBPhX7Eak4nmkNERiwPiitJNc0ub4kCxKZt64zvxcZXaeIjdANAWDa; expires=Tue, 16-Jul-2013 08:21:29 GMT; path=/; domain=.google.com; HttpOnly
P3P => CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
Server => gws
X-XSS-Protection => 1; mode=block
X-Frame-Options => SAMEORIGIN
你能给我提示一下为了发出请求需要哪些标头吗?