Written by

Senior Cloud Architect at InterSystems
Question Eduard Lebedyuk · May 23, 2018

How to create a POST redirect?

User calls my REST service. I need:

  • Redirect him to a POST url
  • Provide request body

Is it possible? How?

Comments

Tomas Vaverka · May 23, 2018

Purpose of REST is not to provide web pages, therefore I do not think this is possible. I remember once I tried it based on request from another customer and failed.

0
Eduard Lebedyuk  May 23, 2018 to Tomas Vaverka

Redirect is easy to do in REST:

set %response.Redirect = "url"

And that's it. The problem is forcing a client to redirect to a POST verb and also providing the body.

0
Peter Cooper  May 23, 2018 to Eduard Lebedyuk

Hi Eduard

Serverside redirect?

Peter

0
Eduard Lebedyuk  May 24, 2018 to Peter Cooper

Wouldn't work in that context (OAuth authentication).

0