Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Unless otherwise noted, the mechanisms established by the Charity Engine Distributed Proxy for authentication and configuration still apply, as Smart Proxy is an extension of the Distributed Proxy. Refer to the Charity Engine Distributed Proxy documentation Documentation for details.

Initiating Smart Proxy crawls

...

Data can be retrieved from PhantomJS either as plaintext or with JSON encoding. Plaintext data is passed as-is, and a HTTP 200 OK status code is generated automatically when returning a result (see example 2 Example 2 in "Example Scripts" below). If it is useful to return a different status code or custom HTTP headers instead, a specifically formatted JSON object can be used instead (see example 1 Example 1 in "Example Scripts" below):

Code Block
languagejs
{
  body: null,
  headers: {'Content-Type': 'text/plain; charset=UTF-8'},
  statusCode: 200,
  statusMessage: 'OK',
  httpVersion: '1.1'
}

...