Rob
09/27/2024, 11:54 AMCeligo AI
09/27/2024, 11:54 AMAI generated answer (using internal Slack threads):To call a Restlet from a Map/Reduce script using an internal URL, you would typically need to use the external URL and authenticate. However, if the script is triggered from the UI, which usually will have the JSESSIONID cookie set, you can set up a field to hold the cookie for later use. Here is a general approach: 1. Get the internal URL of the Restlet. 2. Use the
https
module to make a GET or POST request to the Restlet.
3. Pass the JSESSIONID cookie in the headers of the request.
Please note that this approach assumes that the Restlet and the Map/Reduce script are running in the same session. If they are not, you would need to authenticate the request using the appropriate credentials.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/27/2024, 11:54 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832762718
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821604848
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818489492
Celigo AI
09/27/2024, 11:54 AM