Re: How to interpret CURLE_WEIRD_SERVER_REPLY?
Patrick Monnerat via curl-library <[email protected]> Fri, 24 Oct 2025 01:08:55 +0200
| Newsgroups | gmane.comp.web.curl.library |
|---|---|
| Message-ID | <[email protected]> |
On 10/23/25 9:12 PM, SherwoodP via curl-library wrote: > This is my reply to Patrick Schlangen and Patrick Monnerat: >> >> It seems the code activates ther verbose output, but it has not been >> posted. This is mandatory to have this to answer the initial question. >> >> Blindly, I can already say PLAIN mechanism is used instead of the Eudora >> LOGIN choice, as the former is preferred by curl over the latter. >> > > Attached is the verbose output from curl when I attempt to send an > email using"secure mail keys" for authentication. Thanks for the verbose output. Be careful and change your SMTP password (key?): it has been published by this post in base64 :-( Plain login has been performed successfully. Then curl tries to perform a (user) command because you neither tell to upload something nor used mime posting. In the absence of real user command, curl sends a VRFY command that is not supported by your server --> CURL_WEIRD_SERVER_REPLY because "502 5.3.3 VRFY is not supported" is not a curl expected reply. Solution to your problem: add the following line to your program before calling curl_easy_perform(). *code = curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);* This should do the expected job. Patrick -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html