开发者

How does a server detect a request made by Curl

Go to ifconfig.me , now run "curl ifconfig.me". You get different responses. How does the server know how a request was made?

EDIT: Here's a link that compliments the answer given below. It details the User-Agents curl uses. http://www.useragent开发者_如何学运维string.com/pages/curl/


The client passes information to the server in the request header. This includes, for example, the user agent string:

  • http://en.wikipedia.org/wiki/HTTP_headers
  • http://en.wikipedia.org/wiki/User_agent
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜