Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8454
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <mhrivnak@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.041 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'command-line': 0.09; 'subject:DNS': 0.09; 'am,': 0.13; 'binary': 0.13; 'wrote:': 0.15; "--help'": 0.16; 'noted,': 0.16; 'url:html)': 0.16; '\xa0this': 0.16; 'cc:addr:python-list': 0.16; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'thats': 0.23; 'subject:Question': 0.25; 'sender:addr:gmail.com': 0.26; 'hey': 0.26; 'fri,': 0.28; 'message-id:@mail.gmail.com': 0.28; '24,': 0.29; 'unknown': 0.29; 'skip:- 30': 0.30; 'skip:( 20': 0.30; 'cc:addr:python.org': 0.30; 'luck,': 0.30; 'thanks': 0.30; 'version': 0.30; 'looks': 0.30; 'michael': 0.32; 'implementing': 0.32; 'source': 0.33; 'option.': 0.35; 'url:se': 0.35; 'yet,': 0.35; 'running': 0.35; 'option': 0.37; 'response': 0.37; 'open': 0.37; 'received:google.com': 0.37; 'but': 0.37; 'some': 0.37; 'received:209.85': 0.38; 'getting': 0.38; 'could': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'perhaps': 0.39; 'help': 0.39; 'received:209': 0.39; "couldn't": 0.40; 'introduced': 0.40; 'would': 0.40; 'more': 0.60; 'give': 0.60; 'your': 0.61; 'back': 0.63; 'jun': 0.67; 'received:209.85.215.174': 0.67; 'received :mail-ey0-f174.google.com': 0.67; 'url:c': 0.72 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=GgdX+FLwpFbxq2E1mE69iKmS5jwE0Tx9C4TbAHslQRg=; b=TPF9WbeCBPjJz/A9qTLyntF0CxtpHa5mw7Vtx8tdavQ8FShfTFGj8/PhAVSQ4bLqqu 9SrS6O0Mdqb2pnofAmdhEWQutuwOKK+iB8+kAQRiaW2dhcxVDb67Q802ib74pTUs3bZw /G2Ko0hZtGe369ale6CxdJh5y5CRhYUJlkH40= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=IqlIpI670i89uq49tNUcWx1T3KMg+jGCagc9i+hq3xZ6Pcz4PT9PDKe1RZ+nzyfE+U +y1gDd7RocHE2UBXWm+c6KK7+S/xD2ef19g9RX+0MphRXiIc5KjPvTdZpvatiUekkNtX HYzTEk4gOT1XXMP/JJGK07g/FB5KgdqRp4X0Y= |
| MIME-Version | 1.0 |
| Sender | mhrivnak@gmail.com |
| In-Reply-To | <4E046424.4090709@gmail.com> |
| References | <E284F771-80D9-4F21-9935-1D61E76F8B01@gmail.com> <BANLkTimLU0sPaXL8JaP0nwz3m70AtnwEoQ@mail.gmail.com> <4E046424.4090709@gmail.com> |
| Date | Sat, 25 Jun 2011 16:27:41 -0400 |
| X-Google-Sender-Auth | 9CG4OpgI1KXTCn5w3ZeMjLF0W7E |
| Subject | Re: Question regarding DNS resolution in urllib2 |
| From | Michael Hrivnak <mhrivnak@hrivnak.org> |
| To | saurabh verma <nitw.saurabh@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.410.1309033662.1164.python-list@python.org> (permalink) |
| Lines | 42 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1309033662 news.xs4all.nl 4352 [::ffff:82.94.164.166]:41052 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8454 |
Show key headers only | View raw
As I noted, the feature was introduced in version 7.21.3. From your post, it looks like you're running version 7.19.7. Perhaps you should look into getting a newer version of curl. Or if you're feeling brave and have some C skills, you could try implementing this feature in pycurl! That would be a help to you, and a way to give back to the open source community. Best of luck, Michael On Fri, Jun 24, 2011 at 6:17 AM, saurabh verma <nitw.saurabh@gmail.com> wrote: > Michael Hrivnak wrote: >> >> The latest libcurl includes the CURLOPTS_RESOLVE option >> (http://curl.haxx.se/libcurl/c/curl_easy_setopt.html) that will do >> what you want. It may not have made its way into pycurl yet, but you >> could just call the command-line curl binary with the --resolve >> option. This feature was introduced in version 7.21.3. >> >> Michael >> > > Hey Michael , Thanks for the response . Thats exactly what i was looking > for. > > "curl binary with the --resolve" ? > > --(0)> curl --resolve > curl: option --resolve: is unknown > curl: try 'curl --help' or 'curl --manual' for more information > --(saurabhve@sa-mac-saurabh)-(~)-- > --(2)> curl -V > curl 7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l > zlib/1.2.3 > > > Couldn't find it . > > ~saurabh >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Question regarding DNS resolution in urllib2 Michael Hrivnak <mhrivnak@hrivnak.org> - 2011-06-25 16:27 -0400
csiph-web