[Paste] Webob Request, specifying proxy server

Top Page
Author: Thomas G. Willis
Date:  
To: Paste Users
Subject: [Paste] Webob Request, specifying proxy server
Hey everyone. This is probably a simple question but I'm not seeing
it.Work just threw up a proxy hich is breaking some of my tools built
around webob. The below code works fine on internal machines which is
expected. But making requests to external servers results in
get_response hanging indefinitely(i think)

In [17]: from paste.proxy import TransparentProxy

In [18]: app = TransparentProxy()

In [19]: from webob import Request

In [20]: str(Request.blank("http://altair/repo").get_response(app))

Out[20]: '200 Script output follows\nDate: Wed, 28 Jul 2010 12:47:45
GMT\nServer: Apache/2.2.14 (Ubuntu)\nVary: Accept-Encoding\nContent-
Type: text/html; charset=ascii\n\n<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">\n<head>\n ...

In [20]: str(Request.blank("http://google.com").get_response(app))

My guess is I have to somehow get my proxy settings in here somewhere
but I'll be damned if I could find it in the docs. Of course the ntlm
is another issue but I think I can solve that one(hopefully).

Any ideas definitely appreciated.


Tom Willis

-- 
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???.
To unsubscribe from this group, send email to paste-users+unsubscribe@???.
For more options, visit this group at http://groups.google.com/group/paste-users?hl=en.