cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compiling libcurl for https

From: Andrew Williams <rapmapper_at_c031.aone.net.au>
Date: Mon, 26 Oct 2015 09:05:08 +1100

Ray,
Your advice was spot on. All worked perfectly.

Now I have some slightly more code related questions that may or may not
be libcurl specific.

If this is a better question asked in a C++ beginners forum I'll understand.

The console app I copied and most of the other examples I've been able
to find for downloading files all seem to pre-define the output file
name even when the download file name is provided as part of the URL.

Are there any parts of libcul that allow the URL to be parsed and
provide the requested file name to be separated from the whole URL?

My goal is simply to download a requested file and have it land on my
desktop with that exact same name.

If its a process of parsing the URL on input and pulling the file name
out as a pure string manipulation then all good.

Just wondering if libcurl did this implicitly and I just can't find it
in the documentation.

regards
Andrew
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-10-25