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: Very long URL returning CURLE_URL_MALFORMAT
From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 7 Mar 2020 11:34:33 +0100 (CET)
Date: Sat, 7 Mar 2020 11:34:33 +0100 (CET)
On Fri, 6 Mar 2020, Robert Brose via curl-library wrote:
(I think Jeffrey's response is on track to the solution but I'll just add two
little details.)
> I run it through URL validators and it's fine.
Another trick is to pass the URL to the curl tool, which in this case also has
no problem with the URL and this proving that it isn't a length limit in
libcurl you're reaching.
> Is there some sort of maximum URL length?
There is. libcurl will refuse to handle URLs longer than 8000000 bytes. That
is 8 million bytes. The reason for this limit is simply that anything longer
than that is typically just an abuse or attack trying to do something bad.
Most popular browsers don't support URLs longer than somewhere around 10K.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2020-03-07