← Commit list

66c41484d0

Daniel Stenberg
Daniel Stenberg
2026-09-21
SUCCESS Duration: 432s

Subject

CURLINFO_EFFECTIVE_URL.md: mention a short lifetime

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/libcurl/opts/CURLINFO_EFFECTIVE_URL.md+5 -2
@@ -29,13 +29,16 @@ CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_EFFECTIVE_URL, char **urlp);
Pass in a pointer to a char pointer and get the last used effective URL.
-In cases when you have asked libcurl to follow redirects, it may not be the same
-value you set with CURLOPT_URL(3).
+In cases when you have asked libcurl to follow redirects, it may not be the
+same value you set with CURLOPT_URL(3).
The **urlp** pointer is NULL or points to private memory. You **must not**
free it. It memory gets freed automatically when you call curl_easy_cleanup(3)
on the corresponding curl handle.
+The returned string has limited life-time. It might get destroyed at the next
+libcurl function call involving this same *handle*.
+
# %PROTOCOLS%
# EXAMPLE