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.

[Feature Request] Optional flag to disable path normalization for libcurl's URL API

From: coder man via curl-library <>
Date: Sun, 21 Feb 2021 07:44:43 -0500

Hi there!

I gonna use libcurl's URL API as the URL parser for a web security fuzzer

Curl has a nice feature to disable URL path normalization while sending
HTTP requests (--path-as-is CLI argumet):

Unfortunately, the URL API does not have such a thing to disable path
normalization while parsing the URLs:

Defining a new flag to disable the default path normalization behaviour may


Proof of the concept:

#include "stdio.h"
#include "curl/curl.h"

int main() {
    CURLU *url_handle = curl_url();
    curl_url_set(url_handle, CURLUPART_URL, "", 0);
    char *full_url;
    // Output: ("../" characters were removed)
    return 0;

Received on 2021-02-21