Jelajahi Sumber

Tidied up remote taks part of user guide

Rune Halvorsen 15 tahun lalu
induk
melakukan
72040a51e3
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      docs/userguide/remote-tasks.rst

+ 5 - 2
docs/userguide/remote-tasks.rst

@@ -10,7 +10,7 @@ Executing tasks on a web server
 If you need to call into another language, framework or similar, you can
 If you need to call into another language, framework or similar, you can
 do so by using HTTP callback tasks.
 do so by using HTTP callback tasks.
 
 
-The HTTP callback tasks uses GET/POST arguments and uses a simple JSON response
+The HTTP callback tasks use GET/POST arguments and a simple JSON response
 to return results. The scheme to call a task is::
 to return results. The scheme to call a task is::
 
 
     GET http://example.com/mytask/?arg1=a&arg2=b&arg3=c
     GET http://example.com/mytask/?arg1=a&arg2=b&arg3=c
@@ -19,6 +19,9 @@ or using POST::
 
 
     POST http://example.com/mytask
     POST http://example.com/mytask
 
 
+FIXME: what is the content type? post as formencoded or as text/plain
+with json ? support both?
+
 Whether to use GET or POST is up to you and your requirements.
 Whether to use GET or POST is up to you and your requirements.
 
 
 The web page should then return a response in the following format
 The web page should then return a response in the following format
@@ -61,7 +64,7 @@ or in Ruby on Rails:
     end
     end
 
 
 You can easily port this scheme to any language/framework;
 You can easily port this scheme to any language/framework;
-New examples and libraries are very welcome.
+new examples and libraries are very welcome.
 
 
 To execute the task you use the :class:`URL` class:
 To execute the task you use the :class:`URL` class: