mirror of
https://github.com/curl/curl.git
synced 2026-08-26 03:03:36 +03:00
docs: use a space after RFC when spelling out RFC numbers
Closes #11382
This commit is contained in:
parent
9bf89bdc5b
commit
22c92a6d51
35 changed files with 73 additions and 70 deletions
|
|
@ -49,11 +49,11 @@ static const char *payload_text =
|
|||
"Message-ID: "
|
||||
"<dcd7cb36-11db-487a-9f3a-e652a9458efd@rfcpedant.example.org>\r\n"
|
||||
"Subject: IMAP example message\r\n"
|
||||
"\r\n" /* empty line to divide headers from body, see RFC5322 */
|
||||
"\r\n" /* empty line to divide headers from body, see RFC 5322 */
|
||||
"The body of the message starts here.\r\n"
|
||||
"\r\n"
|
||||
"It could be a lot of lines, could be MIME encoded, whatever.\r\n"
|
||||
"Check RFC5322.\r\n";
|
||||
"Check RFC 5322.\r\n";
|
||||
|
||||
struct upload_status {
|
||||
size_t bytes_read;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
/*
|
||||
* Example code that uploads a file name 'foo' to a remote script that accepts
|
||||
* "HTML form based" (as described in RFC1738) uploads using HTTP POST.
|
||||
* "HTML form based" (as described in RFC 1738) uploads using HTTP POST.
|
||||
*
|
||||
* Warning: this example uses the deprecated form api. See "postit2.c"
|
||||
* for a similar example using the mime api.
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
* </DESC>
|
||||
*/
|
||||
/* Example code that uploads a file name 'foo' to a remote script that accepts
|
||||
* "HTML form based" (as described in RFC1738) uploads using HTTP POST.
|
||||
* "HTML form based" (as described in RFC 1738) uploads using HTTP POST.
|
||||
*
|
||||
* The imaginary form we will fill in looks like:
|
||||
*
|
||||
|
|
|
|||
|
|
@ -57,11 +57,11 @@ static const char *payload_text =
|
|||
"Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
|
||||
"rfcpedant.example.org>\r\n"
|
||||
"Subject: SMTP example message\r\n"
|
||||
"\r\n" /* empty line to divide headers from body, see RFC5322 */
|
||||
"\r\n" /* empty line to divide headers from body, see RFC 5322 */
|
||||
"The body of the message starts here.\r\n"
|
||||
"\r\n"
|
||||
"It could be a lot of lines, could be MIME encoded, whatever.\r\n"
|
||||
"Check RFC5322.\r\n";
|
||||
"Check RFC 5322.\r\n";
|
||||
|
||||
struct upload_status {
|
||||
size_t bytes_read;
|
||||
|
|
|
|||
|
|
@ -54,11 +54,11 @@ static const char *payload_text =
|
|||
"Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
|
||||
"rfcpedant.example.org>\r\n"
|
||||
"Subject: SMTP example message\r\n"
|
||||
"\r\n" /* empty line to divide headers from body, see RFC5322 */
|
||||
"\r\n" /* empty line to divide headers from body, see RFC 5322 */
|
||||
"The body of the message starts here.\r\n"
|
||||
"\r\n"
|
||||
"It could be a lot of lines, could be MIME encoded, whatever.\r\n"
|
||||
"Check RFC5322.\r\n";
|
||||
"Check RFC 5322.\r\n";
|
||||
|
||||
struct upload_status {
|
||||
size_t bytes_read;
|
||||
|
|
|
|||
|
|
@ -47,11 +47,11 @@ static const char *payload_text =
|
|||
"Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
|
||||
"rfcpedant.example.org>\r\n"
|
||||
"Subject: SMTP example message\r\n"
|
||||
"\r\n" /* empty line to divide headers from body, see RFC5322 */
|
||||
"\r\n" /* empty line to divide headers from body, see RFC 5322 */
|
||||
"The body of the message starts here.\r\n"
|
||||
"\r\n"
|
||||
"It could be a lot of lines, could be MIME encoded, whatever.\r\n"
|
||||
"Check RFC5322.\r\n";
|
||||
"Check RFC 5322.\r\n";
|
||||
|
||||
struct upload_status {
|
||||
size_t bytes_read;
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ static const char *payload_text =
|
|||
"Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
|
||||
"rfcpedant.example.org>\r\n"
|
||||
"Subject: SMTP example message\r\n"
|
||||
"\r\n" /* empty line to divide headers from body, see RFC5322 */
|
||||
"\r\n" /* empty line to divide headers from body, see RFC 5322 */
|
||||
"The body of the message starts here.\r\n"
|
||||
"\r\n"
|
||||
"It could be a lot of lines, could be MIME encoded, whatever.\r\n"
|
||||
"Check RFC5322.\r\n";
|
||||
"Check RFC 5322.\r\n";
|
||||
|
||||
struct upload_status {
|
||||
size_t bytes_read;
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ static const char *payload_text =
|
|||
"Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
|
||||
"rfcpedant.example.org>\r\n"
|
||||
"Subject: SMTP example message\r\n"
|
||||
"\r\n" /* empty line to divide headers from body, see RFC5322 */
|
||||
"\r\n" /* empty line to divide headers from body, see RFC 5322 */
|
||||
"The body of the message starts here.\r\n"
|
||||
"\r\n"
|
||||
"It could be a lot of lines, could be MIME encoded, whatever.\r\n"
|
||||
"Check RFC5322.\r\n";
|
||||
"Check RFC 5322.\r\n";
|
||||
|
||||
struct upload_status {
|
||||
size_t bytes_read;
|
||||
|
|
@ -101,7 +101,7 @@ int main(void)
|
|||
|
||||
/* This is the URL for your mailserver. Note the use of port 587 here,
|
||||
* instead of the normal SMTP port (25). Port 587 is commonly used for
|
||||
* secure mail submission (see RFC4403), but you should use whatever
|
||||
* secure mail submission (see RFC 4403), but you should use whatever
|
||||
* matches your server configuration. */
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "smtp://mainserver.example.net:587");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue