Re: POST bytes of data and receive response from server

"Paul Accosta" <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <[email protected]>
JFYI

I was having similar problems with libwww and I couldnt find help here.
I switched over to use libcurl and all my web coding problems have
disappeared. It is very easy to use and the mailing list are actively
monitored.
 
Pico G

"Jerry G. Chiuan" <[email protected]> wrote:

>Hi All,
> I try to send this email to see anyone can give me some helps for my
> difficulty
> 
> I would like to use libwww to POST bytes of data from my application
to
> the server and receive response as well from there, save response as
> bytes of data.
> my data is stored in some kind of data structure like this:
> 
> class buffer {
> char a[2];
> char b[1];
> char *c = "Hello World";    // length is changeable
> ::
> ::
> }
> 
> my problem is:
> 
> - is it possible to POST seperated bytes of data instead of using 
> HTAnchor_setDocument(src, data);        // char   *data 
> 
> I mean I don't want to construct my buffer as single "consecutive
bytes
> of data" before using setDocument( ) and set it at a time, cause it
> brings overhead of array copy and possible memory reallocation (
length
> of data pointed by "c" is dynamic, not fixed length ). 
> 
> Instead, I would like to directly dump my data to libwww, a, b, and
> c.....one by one, like what we can do by using JAVA's
> DataOutputStream.write( )
> 
> Or, you think this kind of overhead can't be avoid anyway. libwww also
> needs to do it if application doesn't do it and just directly dump
data
> seperatedly as what I mention.
> 
> 
> 
> Regds,
> 
> - Jerry  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
---------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.