cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reverse URL lookup

From: Jesse Noller <jnoller_at_archivas.com>
Date: Tue, 20 Apr 2004 11:38:46 -0400

On Tue, 2004-04-20 at 11:29, Gisle Vanem wrote:
> "Jesse Noller" <jnoller_at_archivas.com> wrote:
>
> > Quick question: Using Curl and Libcurl, when a connection is started,
> > curl seems to do a reverse lookup of the url (or IP address). Is there a
> > reason why it does this reverse lookup on every connection - and is
> > there a way to disable this?
> >
> > The reason I ask is that we are doing a fair amount of work in
> > situations where we will not have a reverse zone, and the time out time
> > adds about 2 minutes to each transaction.
>
> It only happens for ftp in passive mode AFAICS. The reason may be to
> tell you when you've been redirected off the original host (in response to
> the PASV command). But I'm not really sure why, Daniel?
>
> So don't use "--verbose" (or -v) in curl. Alternatively temporary toggle
> CURLOPT_VERBOSE to off state in your program using libcurl.
>
> --gv
>
>

Actually - we've seen it happen when doing a URL PUT against an HTTP
server. -v was not in use. We are using -iT for all intensive purposes.

-jesse
Received on 2004-04-20