Reputation: 4983
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.useragentstring.com/pages/curl/
Upvotes: 2
Views: 2343
Reputation: 13332
The client passes information to the server in the request header. This includes, for example, the user agent string:
Upvotes: 1