curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Escaping URL for CURLOPT_URL

From: Dan Fandrich via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 20 Apr 2022 07:49:16 -0700

On Wed, Apr 20, 2022 at 04:41:22PM +0200, Andreas Falkenhahn via curl-library wrote:
> is there any convenient way of escaping a URL so that it can be passed to CURLOPT_URL?

The curl_url API can do this, specifically, the CURLU_URLENCODE option.
curl_url is the preferred means of parsing URLs in libcurl-using programs.

Dan
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-04-20