- From: Kevin L <kevl88@yahoo.com>
- Date: Fri, 22 Sep 2000 09:25:57 -0700 (PDT)
- To: Timo.Ross@ic3s.de
- Cc: kevl88@yahoo.com, www-lib@w3.org
Timo, 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. Kevin --- 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 you? > // 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", ""); > // KEVIN TEST > 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. http://im.yahoo.com/
Received on Friday, 22 September 2000 12:22:31 UTC