cURL / Mailing Lists / curl-users / Single Mail


Re: No user-agent

From: Ralph Mitchell <>
Date: Wed, 30 Jul 2008 11:51:12 -0500

On Wed, Jul 30, 2008 at 11:41 AM, Pete J <> 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

So, -H "User-Agent:" would do what you want.

Ralph Mitchell

List admin:
Received on 2008-07-30