cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
91
Views
0
Helpful
2
Replies

how to send a POST request to a DNG-protected Web Application

m2oswald
Level 1
Level 1

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.

2 Replies 2

wajidhassan
Level 3
Level 3

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.

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?  

Quick Links