[General] HTTP Post requests

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[General] HTTP Post requests

Juhani Ränkimies
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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://livelykernel.sunlabs.com/pipermail/general/attachments/20081125/85e87a33/attachment.html 


Reply | Threaded
Open this post in threaded view
|

[General] HTTP Post requests

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

On Tue, Nov 25, 2008@11:39 AM, Juhani R?nkimies <[hidden email]> 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)



Reply | Threaded
Open this post in threaded view
|

[General] HTTP Post requests

Dan Ingalls-3
>On Tue, Nov 25, 2008@11:39 AM, Juhani R?nkimies <[hidden email]> 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