cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Auto-connect

From: Paul Johnson <paul_at_applewoodhouse.com>
Date: Thu, 10 Jul 2003 14:55:18 +0100

oh, ok. Probably suffering from assumption error. Will investigate.

Thanks...

Regards,
Paul Johnson
Applewood House
www.applewoodhouse.com

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "libcurl Mailing list" <curl-library_at_lists.sourceforge.net>
Sent: Thursday, July 10, 2003 2:05 PM
Subject: Re: Auto-connect

> 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/bulletproofapps
>
>

-------------------------------------------------------
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/bulletproofapps
Received on 2003-07-10