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


Groups > comp.lang.python > #8366

Re: Question regarding DNS resolution in urllib2

Date 2011-06-24 15:47 +0530
From saurabh verma <nitw.saurabh@gmail.com>
Subject Re: Question regarding DNS resolution in urllib2
References <E284F771-80D9-4F21-9935-1D61E76F8B01@gmail.com> <BANLkTimLU0sPaXL8JaP0nwz3m70AtnwEoQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.361.1308910313.1164.python-list@python.org> (permalink)

Show all headers | View raw


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


Thread

Re: Question regarding DNS resolution in urllib2 saurabh verma <nitw.saurabh@gmail.com> - 2011-06-24 15:47 +0530

csiph-web