You will paste text containing multiple lines. If this text is pasted into the shell, it may cause the command to be executed unexpectedly. Does it continue?
1. You will paste a text containing multiple lines. If this text is pasted into the shell, it may cause the command to be executed unexpectedly. whether to continue?. as shown in Figure 1
2. Click to still paste, and then report an error: curl : Invalid URI: Failed to analyze the host name. as shown in Figure 2
PS C:\Users\Lenovo> curl \ curl : Invalid URI: failed to analyze the host name. Location Line: 1 Characters: 1 + ~~~~~~ + CategoryInfo : NotSpecified: (:)[Invoke-WebRequest], UriFormatException + FullyQualifiedErrorId : System.UriFormatException, Microsoft.PowerShell.Commands.InvokeWebRequestCommand ps c:\users\lenovo> --ssl-reqd \ Location Line:1 Characters: 3 + --ssl-reqd\ + ~ The unary operator "--" is missing an expression. Location Line:1 Characters: 3 + --ssl-reqd\ The expression or statement contains an unexpected tag "ssl-reqd". + CategoryInfo : ParserError: (:)[], ParentContainsErrorRecordException + FullyQualifiedErrorId : MissingExpressionAfteroperator
3. Give up pasting in the Windows terminal, but in the Ubuntu terminal. After pasting, press Enter, and the execution is successful. as shown in Figure 3
wangqiang@desktop-qlpk8qm:~$ curl \ > --ssl-reqd \ > --urlsmtp://live.smtp.mailrap.io:587\ > --userAPI:3511FB6FFC4B70C44293A9168780A851\ > --mail-from mailrap@mail.wangqiang.store \ > --mail-rcpt shuijingwanwq@gmail.com \ upload-f> --upload-file - <<eof > from: magic elves <mailtrap@mail.wangqiang.store> > to: mailrap inbox <shuijingwanwq@gmail.com> > subject: you are awesome! > content-type: multipart/alternative; boundary="boundary-string" > > --boundary-string > content-type: text/plain; charset="utf-8" > content-transfer-encoding: quoted-printable > content-disposition: inline > > congrats for sending test email with mailtrap! > > If you are viewing this email in your inbox – the integration works. > Now send your email using our SMTP server and integration of your choice! > > good luck! Hope it works. > > --boundary-string > content-type: text/html; charset="utf-8" > content-transfer-encoding: quoted-printable > content-disposition: inline > > <!doctype html> > <html> > <head> > > </head> > <body style="font-family: sans-serif;"> > <div style="display: block; margin: auto; max-width: 600px;" class="main"> > <h1 style="font-size: 18px; font-weight: bold; margin-top: 20px">congts for Sending test email with mailrap!</h1> > <p>if you are viewing this email in your inbox – the integration works.</p> <img alt="> <img alt="inspect with tabs" src="https://assets-examples.mailrap.io/integration-examples/welcome.png" style="width: 100%;"> > <p>now send your email using our SMTP server and integration of your choice!</p> > <p>good luck! hope it works.</p> > </div> > <!-- Example of invalid for email HTML/CSS, will be detected by mailtrap: --> > <img src="data:image/gif;base64,r0lgodlhaqabiaaaaaaaap///yh5baeaaaaaaaaaaaaaaaaaibraa7" data-wp-preserve="%3cstyle%3e%0a%3e%20%20%20%20%20%20%20%20.main %20%7B%20Background-Color%3A%20White%3B%20%20%7D%0A%3E%20%20%20%2 0%20%20%20A%3Ahover%20%7B%20Border-Left-Width%3A%201EM%3B%20Mi N-Height%3A%202EM%3B%20%7D%0A%3E%20%20%20%20%20%20%3C%2Fstyle%3E" data-mce-resize="false" data-mce-placeholder="1" class="mce-object" width="20" height="20" alt="&lt;style&gt;" title="&lt;style&gt;" /> > </body> > </html> > > --boundary-string-- > EOF % total % received % xferd average speed time time time current Dload Upload Total Spent Left Speed 100 1629 0 0 0 1629 0 382 --:--:-- 0:00:04 --:--:--- 382 Curl: (56) Failure when receiving data from the peer wangqiang@desktop-qlpk8qm:~$


