Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.170 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.68; '*S*': 0.02; 'subject:How': 0.10; '(via': 0.16; 'httplib': 0.16; 'ntlm': 0.16; 'subject:object': 0.16; 'urllib2,': 0.16; 'thanks.': 0.20; 'initial': 0.24; 'leveraging': 0.30; 'received:209.85': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'effort': 0.37; 'application': 0.37; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'utilize': 0.61; 'header:Message- Id:1': 0.63; 'goal': 0.75; 'hoping': 0.75; 'subject:get': 0.81; 'opener': 0.84; 'subject:skip:H 10': 0.84 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version:x-mailer; bh=nRz3pnG3HqrBGnXju/qS54fZWqjnHrsXWB7HuxpSw+s=; b=atbpM+3VvJfFAKl43vnNSbdxErnh+sZRCjJ+I+rKIXRmJMcwqctYcIOM0BhW6rSpJM WKVBBs/4RVyquNp1NZjbSglFMyXWsfFczu2GZiCbyqXAgEKceXBdPyJyQob8bGoAEG66 Tzrd7lhUAQLxp73gJrLfUA7K9NVRue7M9UP2a3htJ62XS+7Iws0Q96iygPPQgNg4mYzU RnJOw9/hYz4Iqdo1C7gYY80LMVaOnHwQWZtKd+7cJBbWvZ9Ox0OvEWi3bREaOMPvo7EH fcXh+sZIo5fGK17lAt8SvUfzc0lVU+ILeby6QgDyE5LUQJJgVliMhVhTuwJAFYJnur0L pUWw== X-Received: by 10.236.84.195 with SMTP id s43mr15785983yhe.105.1366598008816; Sun, 21 Apr 2013 19:33:28 -0700 (PDT) From: Brian Raymond Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: How to get urllib2 HTTPConnection object, use httplib methods? Date: Sun, 21 Apr 2013 22:33:26 -0400 To: python-list@python.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366607820 news.xs4all.nl 2230 [2001:888:2000:d::a6]:54840 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44037 I have a httplib based application and in an effort to find a quick way = to start leveraging urllib2, including NTLM authentication (via = python-ntlm) I am hoping there is a way to utilize an HTTPConnection = object opened by urllib2.=20 The goal is to change the initial opener to use urllib2, after that = continue to use httplib methods. Thanks.=20=