Jump to content

TSimpleWebSrv and POST

Recommended Posts

ICS v8.63



Is TSimpleWebSrv able to process POST request with some data (JSON) in body?

GET works as expected but POST returns (to Postman) 404 and OnSimpWebSrvReq event is not triggered.



Edited by mitzi

Share this post

Link to post

No TSimpleWebSrv does not currently support POST or PUT, if you look at the diagnostic log output you'll see 'Server Request Ignored'.  It was designed as a light weight server for OAUTH2 and responding to well-known requests by certificate authorities.  Adding complexity increases the size of any ICS REST applications that use those features.



Share this post

Link to post

It's a pitty. It could be perfect for webhook implementation.


Edited by mitzi

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now