Skip to content

ben-poole/lambda-curl-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

lambda-curl-test

Description

A very simple Node.js Lambda function which:

  • Fires up following a POST to an API endpoint (e.g. from scheduler app)
  • Accepts a single URI parameter in the post body
  • Curls the supplied URI using child_process
  • On the process callback, extracts the response headers (results)
  • Uses a HTTP client to post those results to an API (e.g. to receiver app)

Installation

Test invocation of plugin: curl -X POST -d '{"uri":"www.aerian.com"}' --header "Content-Type:application/json" https://9vu6dew62a.execute-api.eu-west-1.amazonaws.com/dev/testCurl

Tail the access logs of the 'callbackUri' and wait for the callbackPost.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors