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

Re: Post Anchor to Chunk?

From: Kevin L <kevl88@yahoo.com>
Date: Wed, 13 Sep 2000 11:35:40 -0700 (PDT)
Message-ID: <20000913183540.24595.qmail@web1505.mail.yahoo.com>
To: Timo.Ross@ic3s.de
Cc: www-lib@w3.org

Thanks again for the hint. From the documentation,
HTPostFormAnchorToChunk() indeed can be used to post
arbitrary data.

I still have couple of questions, here's an sample
XmlRpc request that I'm trying to send:

         User-Agent: MyApp
         Host: myhost.domain.com
         Content-Type: text/xml
         Content-length: 181

         <?xml version="1.0"?>

   * how do I set "Content-Type" to "text/xml" for the
     request? I've tried to set it with
     HTRequest_setConversion() on the request and
     HTAnchor_setFormat() on the anchor but to no
     avail; the form removes all request header and
     latter doesn't seem to do anything, content-type
     stays as "application/x-www-form-urlencoded".

   * HTPostFormAnchorToChunk() expects data in an
     associated list, I have request payload as single
     string, so I need to convert it to a
     association/pair; should I store the payload as
     value and empty or some dummy string as name in
     the pair?

Thanks in advance.

--- Timo.Ross@ic3s.de wrote:
> Hi!
> The function you are looking for is
"HTPostFormAnchorToChunk". In the first
> parameter you give an associated list with the
parameter value pairs of you
> post. The replay will be load into a chunk! You will
find this function in
> the HTAccess module.

> Hope this will help you.
> Timo!

> Kevin wrote:
> Hi,

> I'm trying to write a simple xml-Rpc client in C,
> pretty sure I can use libwww for this, but I
> figure out the correct way to use it.

> For people don't know Xml-Rpc, it is a RPC protocol
> over HTTP with request being a HTTP-POST request and
> reply a HTTP response, payload in request and reply
> are in XML.

> What I'm trying to do is use something like post
> request payload in an anchor and return the reply
> payload in chunk, is there something in
> libwww can do this?

> Let me know too if there's a complete different way
> achieve this?

> TIA.

> Kevin

Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
Received on Wednesday, 13 September 2000 14:35:43 UTC

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