cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Can a request from curl look as if it came from a browser?

From: David Colter <dolan2go_at_yahoo.com>
Date: Sun, 2 Nov 2014 15:05:30 -0500

Bruce,

> Can curl send a request to a web server in a way that makes it impossible
> for the web server to know that it's from curl, and not a user doing a
> manual webpage request in a browser?
>
> I mean, I presume there's some way to send the equivalent of a browser
> id/agent string but is there anything more subtle that would tell a server
> curl's involved?

You can enter any value you want in —user-agent and see other usages on the cURL Manual Page <http://curl.haxx.se/docs/manpage.html#-a> and on HTTP Scripting <http://curl.haxx.se/docs/httpscripting.html#User_Agent>.

David

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-02