https://github.com/programmer-ke/request-proxy
Proxy's http requests to other sites
https://github.com/programmer-ke/request-proxy
Last synced: 4 months ago
JSON representation
Proxy's http requests to other sites
- Host: GitHub
- URL: https://github.com/programmer-ke/request-proxy
- Owner: programmer-ke
- License: mit
- Created: 2016-07-29T06:11:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-10T06:16:47.000Z (almost 10 years ago)
- Last Synced: 2025-06-16T23:02:50.505Z (12 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# request-proxy
Proxy's http GET requests via nginx to other sites
Send a `GET` request with a header named `Upstream-URL` whose value is the site
a request is being proxied to.
Example using curl:
`curl -H "Upstream-URL: http://www.nation.co.ke/latestrss.rss" my.proxy.site.com`
Replace `my.proxy.site.com` with the URL of the proxy server.
The initial plan was to implement the proxy using a python script running behind
a web server, but decided to keep things simple and do it in the webserver
itself. The proxy also supports cross origin requests.
An example running proxy: http://proxy.99nth.com