A django app that repeats one http POST into several.
Project description
=====
requestrepeat
=====
A Django app that will receive a web POST request and
resend that same POST to several servers.
Quick start
-----------
1. Add "requestrepeat" to your INSTALLED_APPS setting like this::
```
INSTALLED_APPS = (
...
'requestrepeat',
)
```
2. Add some code
Usage:
```
repeat(request,addresses=("http://my.first.url.com/ipn", "http://my.second.url.com/ipn/"))
```
Example:
```
urls.py
url("^repeater/$", 'requestrepeat.views.listener', name='listener'),
views.py
@csrf_exempt
def listener(request):
return repeat(request,addresses=("http://127.0.0.4:8000", "http://127.0.0.6:8000"))
```
3. Send a POST request with data to http://127.0.0.1:8000/repeater/ replicate that post to several urls.
requestrepeat
=====
A Django app that will receive a web POST request and
resend that same POST to several servers.
Quick start
-----------
1. Add "requestrepeat" to your INSTALLED_APPS setting like this::
```
INSTALLED_APPS = (
...
'requestrepeat',
)
```
2. Add some code
Usage:
```
repeat(request,addresses=("http://my.first.url.com/ipn", "http://my.second.url.com/ipn/"))
```
Example:
```
urls.py
url("^repeater/$", 'requestrepeat.views.listener', name='listener'),
views.py
@csrf_exempt
def listener(request):
return repeat(request,addresses=("http://127.0.0.4:8000", "http://127.0.0.6:8000"))
```
3. Send a POST request with data to http://127.0.0.1:8000/repeater/ replicate that post to several urls.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-requestrepeat-0.5.tar.gz.
File metadata
- Download URL: django-requestrepeat-0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ff0221462a1929f46e55c8f73fd9f69514bedf91397730006ccaea0233ad25b
|
|
| MD5 |
f52208f768b4e58cfe9f94f9f0cda8b2
|
|
| BLAKE2b-256 |
069e7499794d063ca49065fd735ecbc3f90c7259080fd8f3b38e0e586ec80344
|