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


From: Michnowicz, Simon G <Simon.Michnowicz@team.telstra.com>
Date: Tue, 25 May 2004 18:32:37 +1000
Message-ID: <5D01E8305096D3119D7D00508B5EBBF41175478B@ntmsg0133.corpmail.telstra.com.au>
To: <www-lib@w3.org>

Dear Group,

I am trying to use wwwlib to do a file upload to a server,
 using the POST method, from a C program.  
 I beleive the following commands are not suitable , 

HTPostFormAbsolute,HTPostFormRelative,HTPostFormAnchor,HTPostFormAnchorToChunk ,

as they all use HTAssocList, 
which is two strings for the simple case of sending scalar parameters across.

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..

I can see MIME parse streams are used to parse mime input, but can I
also use them to go the other way and create one from input documents?

much thanks

Simon Michnowicz
Mobility Services Section

Telstra Research Laboratories,
770 Blackburn Rd, Clayton, 3168.
Ph:   (03) 9253 6769
Fax: (03) 9253 6339
Received on Tuesday, 25 May 2004 04:37:32 UTC

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