Skip to content

A PHP server that ingests http requests (RAW POST DATA) along with a Go server that delivers http responses stored in a log file. Redis is used as a queue between them.

Notifications You must be signed in to change notification settings

jacobbexten/PostbackDelivery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postback Delivery Mini Project

Description

A PHP server that ingests http requests (RAW POST DATA) along with a Go server that delivers http responses stored in a log file. Redis is used as a queue between them.


Requests were tested using Postman https://www.postman.com/ and a local Go server through test_endpoint.go


Most outside resources used are listed in external_resources.txt


Sample Request:

(POST) http://{server_ip}/ingest.php
(RAW POST DATA)
{
 "endpoint":{
  "method":"GET",
  "url":"http://sample_domain_endpoint.com/data?title={mascot}&image={location}&foo={bar}"
 },
 "data":[
  {
   "mascot":"Gopher",
   "location":"https://blog.golang.org/gopher/gopher.png"
  }
 ]
}


Sample Response (Postback):

GET http://sample_domain_endpoint.com/data?title=Gopher&image=https%3A%2F%2Fblog.golang.org%2Fg opher%2Fgopher.png&foo=

About

A PHP server that ingests http requests (RAW POST DATA) along with a Go server that delivers http responses stored in a log file. Redis is used as a queue between them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published