]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_easy_setopt.md: add missing CURLOPT_POSTFIELDS
authorDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2025 22:34:56 +0000 (00:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Oct 2025 06:50:02 +0000 (08:50 +0200)
It was mistakenly removed in 8dab7465a594b1fb4b (shipped in 8.9.0)

Also fix test 1139 which should have detected this but didn't due to a
bad regex check.

Reported-by: Jonathan Cardoso
Fixes #19151
Closes #119152

docs/libcurl/curl_easy_setopt.md
tests/test1139.pl

index 430c3c14abbcdb498182a6c07ec150b3788476fa..49c57fb11f783db03921ab91df501c072c5000c6 100644 (file)
@@ -686,6 +686,10 @@ Port number to connect to. See CURLOPT_PORT(3)
 
 Make an HTTP POST. See CURLOPT_POST(3)
 
+## CURLOPT_POSTFIELDS
+
+Send a POST with this data - does not copy it. See CURLOPT_POSTFIELDS(3)
+
 ## CURLOPT_POSTFIELDSIZE
 
 The POST data is this big. See CURLOPT_POSTFIELDSIZE(3)
index cabb893d6985e5b5a2a2dfb8c5969bc6e27fa60b..cebf58ccf2075cdfc03e7f2c74cc8b2a5ab6f620 100755 (executable)
@@ -90,7 +90,7 @@ sub scanmdpage {
         }
     }
     foreach my $m (@words) {
-        my @g = grep(/$m/, @m);
+        my @g = grep(/$m\b/, @m);
         if(!$g[0]) {
             print STDERR "Missing mention of $m in $file\n";
             $errors++;