W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1998

Re: Server's response to Post?

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Mon, 14 Dec 1998 13:36:10 -0500
Message-Id: <3.0.5.32.19981214133610.03615990@localhost>
To: olga@goliath.eai.com, www-lib@w3.org
At 11:27 12/14/98 -0600, olga wrote:

>Is there a way to get the responce of the server when Posting from memory?
>There is a function which stores the result in HTChunk if PostForm is used,
>but I was not able to find similar function for Posting document ASIS.

When posting directly from memory, as you can do using the functions
provided in

	http://www.w3.org/Library/src/HTAccess.html#PostASIS

like for example what you can see in

	http://www.w3.org/Library/Examples/post.c

linked from

	http://www.w3.org/Library/Examples/

you get the data back as a stream - that is, the way you normally get data
out of the libwww. The sample app above, for example, just saves the output
to local file but you can register any stream you like.

This is in effect what the "savetochunk" version does as you can see in the
implementation in

	http://www.w3.org/Library/src/HTAccess.c

Henrik
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk
Received on Monday, 14 December 1998 13:36:15 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 17:59:24 EDT