Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8454 > unrolled thread

Re: Question regarding DNS resolution in urllib2

Started byMichael Hrivnak <mhrivnak@hrivnak.org>
First post2011-06-25 16:27 -0400
Last post2011-06-25 16:27 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Question regarding DNS resolution in urllib2 Michael Hrivnak <mhrivnak@hrivnak.org> - 2011-06-25 16:27 -0400

#8454 — Re: Question regarding DNS resolution in urllib2

FromMichael Hrivnak <mhrivnak@hrivnak.org>
Date2011-06-25 16:27 -0400
SubjectRe: Question regarding DNS resolution in urllib2
Message-ID<mailman.410.1309033662.1164.python-list@python.org>
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
>

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web