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


Groups > comp.lang.python > #8366

Re: Question regarding DNS resolution in urllib2

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <nitw.saurabh@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.031
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'command-line': 0.09; 'subject:DNS': 0.09; 'binary': 0.13; 'wrote:': 0.15; "--help'": 0.16; 'url:html)': 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; 'sfxlen:0': 0.23; 'thats': 0.23; 'subject:Question': 0.25; 'hey': 0.26; 'unknown': 0.29; 'skip:- 30': 0.30; 'skip:( 20': 0.30; 'cc:addr:python.org': 0.30; 'thanks': 0.30; 'version': 0.30; 'michael': 0.32; 'message-id:@gmail.com': 0.32; 'header:User- Agent:1': 0.34; 'received:209.85.160': 0.34; 'option.': 0.35; 'url:se': 0.35; 'yet,': 0.35; 'received:209.85.160.46': 0.35; 'received:mail-pw0-f46.google.com': 0.35; 'option': 0.37; 'response': 0.37; 'received:google.com': 0.37; 'but': 0.37; 'received:209.85': 0.38; 'could': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; "couldn't": 0.40; 'introduced': 0.40; 'more': 0.60; 'received:122': 0.65; 'url:c': 0.72
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Yej4RRlEOffgt1juP9xiYrV6q8yZjVcqI/ZvxXL5M8w=; b=E9digGw7ZyXCSsDIlVXL6rft+1opj+9T3JjR0DmoU0UXxV+4FpnnSPhE9f9p68xiIl QLKEPJsY9x7H08dN6b4kjZQ9b+Kfh8NL1WtkQ2y16ZXqzhCoW2o2ZK282wsuxMinq8Xp s/y25Y6A4r3wMGOiUwFtKOnLJLh2gGG3FQINM=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=KLZ9+oVVGZp1WEHa4535xr9G8RVpOXaalP5Ie0UqBazGdqphJidFukWOY8VXqXzZW+ RWbEpN27aIbgIMUc26k6ufxssH119Enr9mUmkbGa2b49e3Mq8lgIsoP8jMZuj7jOuemw nlBnoC9W8nOq6VE0Jwtd2OxS8IOnndlL1PMMQ=
Date Fri, 24 Jun 2011 15:47:08 +0530
From saurabh verma <nitw.saurabh@gmail.com>
User-Agent Thunderbird 2.0.0.24 (Macintosh/20100228)
MIME-Version 1.0
To Michael Hrivnak <mhrivnak@hrivnak.org>
Subject Re: Question regarding DNS resolution in urllib2
References <E284F771-80D9-4F21-9935-1D61E76F8B01@gmail.com> <BANLkTimLU0sPaXL8JaP0nwz3m70AtnwEoQ@mail.gmail.com>
In-Reply-To <BANLkTimLU0sPaXL8JaP0nwz3m70AtnwEoQ@mail.gmail.com>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
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.361.1308910313.1164.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 82.94.164.166
X-Trace 1308910313 news.xs4all.nl 14136 [::ffff:82.94.164.166]:59061
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8366

Show key headers only | 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