I want to make a Django view that does the following:
- Receive an
HttpRequest
onapi/some/url/or/other
- Passes this through to another server at
some/url/or/other
(rewrite the URL, basically)- Adding a cookie based on session data in Django
- Using the same method, data, params, et al, that were in the original request
- Returns verbatim the response to the API call
- Must store the cookies that came back from the call in the session
- Must include the Django session cookie in the returned
HttpResponse
What tools already exist in Django to do this?