Re: [CentOS] simple http server grab data posted and send to another server - slightly off topic

2021-01-21 Thread Jerry Geis
I did finally find something like this:
https://stackoverflow.com/questions/2506932/how-do-i-redirect-a-request-to-a-different-url-in-python

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] simple http server grab data posted and send to another server - slightly off topic

2021-01-21 Thread Jerry Geis
Hi All,

anyone know how to make a "simple" http server (python -m SimpleHTTPServer
8000) type of stuff - but simply take the incoming data, (should be real
small) and when received - send that to a different server . This is
different than "redirect" as that is the issue. The device does not
understand the redirect response that is happening now. So I was looking
for a way to "consume" the post - then re-send the post.

It has to be independent of httpd as that is in use.

CentOS 7 is my platform.

Thanks

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos