Guest User

Untitled

a guest
Aug 10th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Web proxy in python/django?
  2. import httplib2
  3. from django.conf.urls.defaults import *
  4. from django.http import HttpResponse
  5.  
  6. def proxy(request, url):
  7. conn = httplib2.Http()
  8. if request.method == "GET":
  9. url = request.GET['url']
  10. resp, content = conn.request(url, request.method)
  11. return HttpResponse(content)
Add Comment
Please, Sign In to add comment