curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: How to interpret CURLE_WEIRD_SERVER_REPLY?

From: Patrick Monnerat via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 24 Oct 2025 01:08:55 +0200

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
Received on 2025-10-24