curl-users
Re: No user-agent
Date: Wed, 30 Jul 2008 11:51:12 -0500
On Wed, Jul 30, 2008 at 11:41 AM, Pete J <cackelhorn_at_gmail.com> wrote:
> With the commandline tool, is it possible get it to retrieve a page
> *without* sending a "user-agent" string? Ie, not change the name of
> the agent, but remove the entire field from the headers?
Curl manual page for the "-H" option says:
Remove an internal header by giving a replacement
without content on the right side of the colon, as in: -H
"Host:".
So, -H "User-Agent:" would do what you want.
Ralph Mitchell
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-30