[General] HTTP Post requests

Juhani Ränkimies juhani at juranki.com
Tue Nov 25 11:03:26 CET 2008


Oops, I had HTML formatting on in the previous message. Sorry.
I hope this one comes through better.

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)





More information about the lively-kernel mailing list