[General] HTTP Post requests

Dan Ingalls Daniel.Ingalls at sun.com
Tue Nov 25 18:23:06 CET 2008


>On Tue, Nov 25, 2008 at 11:39 AM, Juhani R?nkimies <juhani at juranki.com> wrote:
>>
> > Hi,
>> Could you add the post method to Network?
>> BR,
> > -juhani
>
>--------------------------- source/kernel/Network.js ---------------------------
>index bba3da6..f9abc35 100644
>@@ -380,6 +380,10 @@ View.subclass('NetRequest', {
> 	return this.request("PUT", URL.makeProxied(url), content);
>     },
>
>+    post: function(url, content) {
>+	return this.request("POST", URL.makeProxied(url), content);
>+    },
>+
>     propfind: function(url, depth, content) {
> 	this.setContentType("text/xml"); // complain if it's set to something else?
> 	if (depth != 0 && depth != 1)

Done.  Should be visible now at

	http://livelykernel.sunlabs.com/repository/lively-kernel/trunk/source/kernel/index.xhtml

- Dan





More information about the lively-kernel mailing list