On Fri, Sep 9, 2011 at 12:04 PM, Bertrand Delacretaz
<[email protected]> wrote:
> Hi JC,
>
> On Tue, Sep 6, 2011 at 5:41 PM, Jean-Christophe Kautzmann
> <[email protected]> wrote:
>> ...I'm triggering a servlet as a background service by adding the parameter
>> sling:bg=true to the request.
>> The job stream is available below /var/bg/jobs (e.g.
>> /var/bg/jobs/2011/06/29/11/37/2/stream).
>> How can I retrieve this path programmatically?
>
> You can use the Location header of the 302 that you get when you do that:
>
> $ curl -D - 
> "http://admin:admin@localhost:8080/system/bgservlets/test?sling:bg=true";
> HTTP/1.1 302 Found
It seems that for a backround process 202 would be the right response
code, but then location has no semantics.

Cheers,
Reto

Reply via email to