cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: No user-agent

From: Pete J <cackelhorn_at_gmail.com>
Date: Wed, 30 Jul 2008 19:26:59 +0200

On Wed, Jul 30, 2008 at 6:51 PM, Ralph Mitchell <ralphmitchell_at_gmail.com> wrote:
> 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.

Yeah, can't read 'mans'. But thank you very much for your help :)
-------------------------------------------------------------------
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