W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

Re: Post Anchor to Chunk? (resend)

From: Kevin L <kevl88@yahoo.com>
Date: Fri, 22 Sep 2000 09:25:57 -0700 (PDT)
Message-ID: <20000922162557.1242.qmail@web1503.mail.yahoo.com>
To: Timo.Ross@ic3s.de
Cc: kevl88@yahoo.com, www-lib@w3.org

Thank you very much for your help.

Yes, I can also post form data and get reply in
one chunk; when I post XmlRpc request the
reply data in still empty, I don't know why
yet. But even with form data, I can only get the
reply chunk asynchronously, i.e. in request
terminate handler, not right after the function
call completes even the "chunk" is already
returned from the call(is that the case for you
too?). It looks to me it's not possible to get
synchronous post with libwww (I'll love to be
corrected on this).

Posting request and getting the result is part of
a small library I'm working on, that this
operation must be one synchronous call. It's
probably not easy achieve this with libwww without
creating multiple threads (again let me know if
I'm wrong), I'm afraid I have to use sockets to
talk to http port directly ;-<

Thanks again.


--- Timo.Ross@ic3s.de wrote:

> Hi Kevin!

> I have tested your functions in my own program and
they work fine!!! I
> can't see any problems. I use them in the "normal"
way to send form data to
> a little CGI-Skript and the response is stored in a
chunk? Perhaps you
> problem is now somewhere else ?!?! I send you all
the things I do with the
> Request before I do the post. Perhaps this will help

>   // create an anchor
>   anchor = HTAnchor_findAddress(url);

>   /* create REQUEST */
>   req = HTRequest_new();

>   /* Output-Format */
>   HTRequest_setOutputFormat(req, WWW_SOURCE);

>   /* Close Connection */
>   HTRequest_addConnection(req, "close", "");

>   doc = "pfield1=hallo&pfield2=welt";
>   chunk = HTPostDocAnchorToChunk(doc, WWW_FORM,
anchor, req);

> Timo!

Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
Received on Friday, 22 September 2000 12:22:31 UTC

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