curl-library
Re: Auto-connect
Date: Thu, 10 Jul 2003 15:05:31 +0200 (CEST)
On Thu, 10 Jul 2003, Paul Johnson wrote:
> I've recently taken my first steps into http programming and after a shaky
> start I downloaded libcurl instead and am now spending my time writing my
> application instead of the transport layer. Top job to everyone involved in
> authoring this project - helped me out of a big hole, thanks :)
*bows*
> Anyways, one thing I've now not got is auto-dial. My original code (win32)
> used gethostbyname() which kicked off the dialup connection if it wasn't
> present. Is there a way to make libcurl do the same without having to
> actually go back to using my own bit of sockets init to make gethostname
> work ?
>
> Out of interest, if libcurl isn't using gethostbyname or similar functions,
> how does it actually hook up to a server from a textual URL ? (I've not
> looked at the source much yet, maybe I should :)
libcurl _is_ actually using gethostbyname() (lib/hostip.c) so if that is what
makes it work, libcurl should work...
-- Daniel Stenberg -- curl: been grokking URLs since 1998 ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofappsReceived on 2003-07-10