07-01-2025 06:27 AM
We have a web application that uses Duo Network Gateway and it's working great when someone access it in a browser. The web app also has an api that can accept POST requests. I'd like to use this via a curl command (or similar) but am not sure how. At the moment when I try it I get a status code of 303 "See Other" which I'm not familiar with at all.
Ultimitely I want to use this as part of automation, to trigger the web app to perform specific actions. Does anyone know if this is possible and could maybe point me in the right direction? Any suggestions would be appreciated.
07-01-2025 07:29 AM
To send a POST request to a DNG (Dynamic Network Gateway)-protected Web Application, you need to first authenticate and obtain a valid session token or cookie from the DNG. The DNG sits in front of the web app and enforces access control, so a direct POST without authentication will fail.
07-01-2025 07:51 AM
Thank you - that makes sense. Do you know how I would authenticate programatically (i.e. not through a web browser)? Or is there a webpage or doc I could look at?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide