W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2004

Re: HTPostAnchor

From: Steinar Bang <sb@dod.no>
Date: Thu, 27 May 2004 11:15:40 +0200
To: www-lib@w3.org
Message-ID: <87smdm8c3n.fsf@bang.priv.no>

>>>>> "Michnowicz, Simon G" <Simon.Michnowicz@team.telstra.com>:

> I am trying to use wwwlib to do a file upload to a server, using the
> POST method, from a C program. 
> The only way I could seem to find to do it is to use
> HTPostAnchor (HTParentAnchor *source, HTAnchor *dest, HTRequest *request);

> and to directly modify the headers of HTParentAnchor to manually
> create the MIME headers with HTAnchor_setDocument()

> Is this the best way to do it? It seems rather clunky..

It's what I do.  Ie. I do this to be able to send a
multipart/form-data body, instead of the old-style form coding
supported by libwww.

I use PUT and HTPutAnchor() to do uploads to the server.
Received on Thursday, 27 May 2004 05:15:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:56 UTC