Skip to content

Commit c228733

Browse files
committed
docs: improve curl_url_get.3
The current man-page lacks some details regarding the obtained path and query.
1 parent 063bfa3 commit c228733

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/libcurl/curl_url_get.3

+9
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,16 @@ If the host name is a numeric IPv6 address, this field might also be set.
8484
.IP CURLUPART_PORT
8585
Port cannot be URL decoded on get.
8686
.IP CURLUPART_PATH
87+
\fIpart\fP will be '/' even if no path is supplied in the URL.
8788
.IP CURLUPART_QUERY
89+
The initial question mark that denotes the beginning of the query part is
90+
a delimiter only.
91+
It is not part of the query contents.
92+
93+
94+
A not-present query will lead \fIpart\fP to be set to NULL.
95+
A zero-length query will lead \fIpart\fP to be set to a zero-length string.
96+
8897
The query part will also get pluses converted to space when asked to URL
8998
decode on get with the CURLU_URLDECODE bit.
9099
.IP CURLUPART_FRAGMENT

0 commit comments

Comments
 (0)