num1
num1

Reputation: 4983

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.useragentstring.com/pages/curl/

Upvotes: 2

Views: 2343

Answers (1)

Matthew
Matthew

Reputation: 13332

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

Upvotes: 1

Related Questions