Tiny http client for Photoshop
$ npm install --save http-client.jsx
$ bower install --save http-client.jsx
Download lib/http-client.full.jsx
#target "photoshop"
#include "node_modules/http-client.jsx/lib/http-client.full.jsx"
var client =
new HttpClient('localhost', {
encoding: 'binary',
port: 80,
timeout: 10,
headers: {
"User-Agent": "Adobe ExtendScript"
}
});
var options = { uri: '/', body: "...", headers: { ... } };
client.post(options, function(response) { ... });
See example/client.jsx
for usage samples.
MIT © Javier Blanco