cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: URL - do you specify only the host or the whole thing?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 1 Mar 2011 13:23:50 -0800

On Tue, Mar 01, 2011 at 03:59:45AM -0500, richardcavell_at_mail.com wrote:
> In libcurl, is it usual to identify the host differently from the
> rest of the URL? eg for
>
> http://en.wikipedia.org/w/api.php?action=login
>
> does one fix the host name and then change the portion after the host
> name between calls?

That's completely up to the app. libcurl takes a single string containing
the URL; how that is generated by the app is irrelevant to it.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-01