curl-users
Re: Alternative Header
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 30 Apr 2007 09:56:46 -0700
Date: Mon, 30 Apr 2007 09:56:46 -0700
On Mon, Apr 30, 2007 at 04:01:54PM +0200, Josef Resperger wrote:
> I am using curl 7.15.1 under Windows.
> I do need to upload a data-file to an URL but have to send an alternative
> header
>
> So I use -H Host: and -H myheader
> But the content of my header is not transmitted. Instead curl makes his own
> header and my datafile is not accepted.
>
> Any ideas what I am doing wrong?
curl takes a request to add a header without any data as a request to
disable that header. Doing -H 'myheader: mydata' should work.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2007-04-30