couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "ExternalProcesses" by JoschaFeth
Date Sat, 26 Dec 2009 02:29:57 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "ExternalProcesses" page has been changed by JoschaFeth.
The comment on this change is: Hints about base64 use.


  == Common Pitfalls ==
   * When responding to queries always remember to turn off buffering for ''stdout'' or issue
a ''flush()'' call on the file handle.
   * All interaction is in the form of single lines. Each response should include *exactly*
one new line that terminates the JSON object.
+  * When using base64 encoders, be sure to strip any CRLF from the result - most encoders
will add CRLF after 76 characters and at the end.
   * CouchDB 0.10 looks for a case-sensitive match of the Content-Type header -- a user-defined
header must specify "Content-Type", not "content-type" or "CoNtEnT-type".  This is fixed in
future releases.
  == Configuration ==
@@ -83, +84 @@

  == Example External Process ==
  Here is a complete Python external process that does a whole lot of nothing except show
the mechanics.
+ {{{
- {{{#! /usr/bin/env python
  import sys
@@ -112, +112 @@

  if __name__ == "__main__":
+ A Java example can be found here:

View raw message