Opencast

Redirection Service REST Documentation

/redirect
This service redirects to given URLs.

General Notes

Table of Contents

Write methods

Method / Path: POST /get
Description: Redirects to the given `target` URL specifically instructing the client to issue a `GET` request. Also verifies that the target lives on the same host as the original request.
Path params: NONE
Required (form) params: target: The URL to redirect to
Optional (form) params: NONE
Status codes: 303: See Other, successful redirect
400: Bad Request, missing or invalid target URL, including URLs pointing to another server
Notes:
  • Return value description: A temporary redirect to the given `target` URL
Testing:
Sample: /get
Testing form (click to reveal)