in reply to Re: Rest API listener (simple)
in thread Rest API listener (simple)

I do have a simple webserver that has cgi capability called thttpd. I use it extensively to perform quasi rexec functions. I just wasn't sure how I would capture a webhook notification and send back an OK. Thanks

Replies are listed 'Best First'.
Re^3: Rest API listener (simple)
by hippo (Archbishop) on Feb 02, 2017 at 09:41 UTC

    Whatever CGI-based Perl module you are already using for your "quasi rexec functions" will have documentation on how to extract the body of a POSTed request. Refer to that for the details (or if you cannot find or understand the documentation, then reply here with specifics such as which module you are using and which version). Then it's just a matter of dumping it to a file and printing the appropriate headers and body back to the client which should be straightforward.