mirror of
https://github.com/curl/curl.git
synced 2026-07-29 06:33:07 +03:00
examples: use present tense in comments
remove "will" and some other word fixes Closes #13003
This commit is contained in:
parent
6e494a2390
commit
f540e43b9d
81 changed files with 189 additions and 198 deletions
|
|
@ -25,14 +25,14 @@
|
|||
* HTTP Multipart formpost with file upload and two additional parts.
|
||||
* </DESC>
|
||||
*/
|
||||
/* Example code that uploads a file name 'foo' to a remote script that accepts
|
||||
/* Example code that uploads a filename 'foo' to a remote script that accepts
|
||||
* "HTML form based" (as described in RFC 1738) uploads using HTTP POST.
|
||||
*
|
||||
* The imaginary form we will fill in looks like:
|
||||
* The imaginary form we fill in looks like:
|
||||
*
|
||||
* <form method="post" enctype="multipart/form-data" action="examplepost.cgi">
|
||||
* Enter file: <input type="file" name="sendfile" size="40">
|
||||
* Enter file name: <input type="text" name="filename" size="30">
|
||||
* Enter filename: <input type="text" name="filename" size="30">
|
||||
* <input type="submit" value="send" name="submit">
|
||||
* </form>
|
||||
*
|
||||
|
|
@ -85,7 +85,7 @@ int main(int argc, char *argv[])
|
|||
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
|
||||
curl_easy_setopt(curl, CURLOPT_MIMEPOST, form);
|
||||
|
||||
/* Perform the request, res will get the return code */
|
||||
/* Perform the request, res gets the return code */
|
||||
res = curl_easy_perform(curl);
|
||||
/* Check for errors */
|
||||
if(res != CURLE_OK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue