cURL / Mailing Lists / curl-library / Single Mail

curl-library

Auto-connect

From: Paul Johnson <paul_at_applewoodhouse.com>
Date: Thu, 10 Jul 2003 12:09:53 +0100

Hi Guys.

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 :)

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 :)

Thanks in advance...

Regards,
Paul Johnson
Applewood House
www.applewoodhouse.com

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