Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73408
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'hosts': 0.07; 'subject:support': 0.07; 'urllib2': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'apache': 0.15; 'hostname': 0.16; 'https': 0.16; 'inconvenient': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'file,': 0.19; 'tests': 0.22; 'header:User-Agent:1': 0.23; 'alternate': 0.24; 'subject:/': 0.26; 'header:X-Complaints-To:1': 0.27; 'host': 0.29; 'run': 0.32; 'but': 0.35; 'there': 0.35; 'server': 0.38; 'configured': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'address.': 0.39; 'received:org': 0.40; 'name': 0.63; 'different': 0.65; 'received:109': 0.72; 'potentially': 0.81 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Robin Becker <robin@reportlab.com> |
| Subject | urllib/urllib2 support for specifying ip address |
| Date | Thu, 19 Jun 2014 10:22:03 +0100 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | 109.174.168.73 |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11137.1403169738.18130.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1403169738 news.xs4all.nl 2941 [2001:888:2000:d::a6]:51756 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:73408 |
Show key headers only | View raw
I want to run torture tests against an https server on domain A; I have configured apache on the server to respond to a specific hostname ipaddress. I don't want to torture the live server so I have set up an alternate instance on a different ip address. Is there a way to get urlib or urllib2 to use my host name and a specifed ip address? I can always change my hosts file, but that is inconvenient and potentially dangerous. -- Robin Becker
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
urllib/urllib2 support for specifying ip address Robin Becker <robin@reportlab.com> - 2014-06-19 10:22 +0100
csiph-web