Message: 1
Date: Sat, 18 Oct 2025 11:11:18 -0700
From: [email protected]
To: [email protected]
Subject: How to interpret CURLE_WEIRD_SERVER_REPLY?
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Message: 2
Date: Sat, 18 Oct 2025 19:04:14 +0000
From: Patrick Schlangen <[email protected]>
To: libcurl development <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: How to interpret CURLE_WEIRD_SERVER_REPLY?
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Did you try capturing a verbose / traffic log for this?
Does it work when using curl from the command line?
Message: 3
Date: Sat, 18 Oct 2025 21:14:23 +0200
From: Patrick Monnerat <[email protected]>
To: [email protected]
Subject: Re: How to interpret CURLE_WEIRD_SERVER_REPLY?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed
On 10/18/25 9:04 PM, Patrick Schlangen via curl-library wrote:
> Did you try capturing a verbose / traffic log for this?
> Does it work when using curl from the command line?
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.
Blindy, I can already say PLAIN mechanism is used instead of the Eudora
LOGIN choice, as the former is preferred by curl over the latter.
I don't know if it's the problem, but CURLOPT_LOGIN_OPTIONS could have
been used to force LOGIN mechanism.
Patrick
Attached is the verbose output from curl when I attempt to send an email using"secure mail keys" for authentication.
== Info: !!! WARNING !!! == Info: This is a debug build of libcurl, do not use in production. == Info: STATE: INIT => CONNECT handle 0x1fd73e75d48; line 1982 == Info: Added connection 0. The cache now contains 1 members == Info: STATE: CONNECT => RESOLVING handle 0x1fd73e75d48; line 2026 == Info: Host outbound.att.net:587 was resolved. == Info: IPv6: (none) == Info: IPv4: 67.195.12.35 == Info: STATE: RESOLVING => CONNECTING handle 0x1fd73e75d48; line 2100 == Info: Trying 67.195.12.35:587... == Info: Connected to outbound.att.net (67.195.12.35) port 587 == Info: STATE: CONNECTING => PROTOCONNECT handle 0x1fd73e75d48; line 2144 onecore\net\netprofiles\service\src\nsp\dll\namespaceserviceprovider.cpp(616)\nlansp_c.dll!00007FF83536F46A: (caller: 00007FF868A3E207) LogHr(2) tid(4ba8) 8007277C No such service is known. The service cannot be found in the specified name space. == Info: SMTP 0x1fd73e777c8 state change from STOP to SERVERGREET == Info: STATE: PROTOCONNECT => PROTOCONNECTING handle 0x1fd73e75d48; line 2171 <= Recv header, 37 (00000025) 0: 32 32 30 20 73 6D 74 70 2E 6D 61 69 6C 2E 79 61 220 smtp.mail.ya 10: 68 6F 6F 2E 63 6F 6D 20 45 53 4D 54 50 20 72 65 hoo.com ESMTP re 20: 61 64 79 0D 0A ady.. => Send header, 11 (0000000B) 0: 45 48 4C 4F 20 43 6F 6F 6B 0D 0A EHLO Cook.. == Info: SMTP 0x1fd73e777c8 state change from SERVERGREET to EHLO <= Recv header, 71 (00000047) 0: 32 35 30 2D 68 65 72 6D 65 73 2D 2D 70 72 6F 64 250-hermes--prod 10: 75 63 74 69 6F 6E 2D 67 71 31 2D 36 62 38 35 37 uction-gq1-6b857 20: 36 63 35 63 66 2D 6E 37 68 62 32 20 48 65 6C 6C 6c5cf-n7hb2 Hell 30: 6F 20 43 6F 6F 6B 20 5B 32 34 2E 36 2E 33 35 2E o Cook [24.6.35. 40: 31 38 31 5D 29 0D 0A 181]).. <= Recv header, 16 (00000010) 0: 32 35 30 2D 50 49 50 45 4C 49 4E 49 4E 47 0D 0A 250-PIPELINING.. <= Recv header, 25 (00000019) 0: 32 35 30 2D 45 4E 48 41 4E 43 45 44 53 54 41 54 250-ENHANCEDSTAT 10: 55 53 43 4F 44 45 53 0D 0A USCODES.. <= Recv header, 14 (0000000E) 0: 32 35 30 2D 38 42 49 54 4D 49 4D 45 0D 0A 250-8BITMIME.. <= Recv header, 19 (00000013) 0: 32 35 30 2D 53 49 5A 45 20 34 31 36 39 37 32 38 250-SIZE 4169728 10: 30 0D 0A 0.. <= Recv header, 14 (0000000E) 0: 32 35 30 20 53 54 41 52 54 54 4C 53 0D 0A 250 STARTTLS.. => Send header, 10 (0000000A) 0: 53 54 41 52 54 54 4C 53 0D 0A STARTTLS.. == Info: SMTP 0x1fd73e777c8 state change from EHLO to STARTTLS <= Recv header, 30 (0000001E) 0: 32 32 30 20 32 2E 30 2E 30 20 52 65 61 64 79 20 220 2.0.0 Ready 10: 74 6F 20 73 74 61 72 74 20 54 4C 53 0D 0A to start TLS.. == Info: schannel: SSL/TLS connection with outbound.att.net port 587 (step 1/3) == Info: Didn't find Session ID in cache for host SMTP://outbound.att.net:587 == Info: schannel: disabled server cert revocation checks == Info: schannel: disabled automatic use of client certificate == Info: schannel: sending initial handshake data: sending 443 bytes. == Info: schannel: sent initial handshake data: sent 443 bytes == Info: schannel: SSL/TLS connection with outbound.att.net port 587 (step 2/3) == Info: schannel: failed to receive handshake, need more data == Info: SMTP 0x1fd73e777c8 state change from STARTTLS to UPGRADETLS == Info: schannel: SSL/TLS connection with outbound.att.net port 587 (step 2/3) == Info: schannel: encrypted data got 4096 == Info: schannel: encrypted data buffer: offset 4096 length 4096 == Info: schannel: encrypted data length: 3963 == Info: schannel: encrypted data buffer: offset 3963 length 4096 == Info: schannel: received incomplete message, need more data == Info: schannel: SSL/TLS connection with outbound.att.net port 587 (step 2/3) == Info: schannel: encrypted data got 906 == Info: schannel: encrypted data buffer: offset 4869 length 4987 == Info: schannel: sending next handshake data: sending 64 bytes. == Info: schannel: SSL/TLS handshake complete == Info: schannel: connection hostname (outbound.att.net) did not match against certificate name (smtp.mail.att.net) == Info: schannel: connection hostname (outbound.att.net) validated against certificate name (outbound.att.net) == Info: schannel: SSL/TLS connection with outbound.att.net port 587 (step 3/3) == Info: Didn't find Session ID in cache for host SMTP://outbound.att.net:587 == Info: Added Session ID to cache for SMTP://outbound.att.net:587 [server] == Info: schannel: stored credential handle in session cache => Send header, 11 (0000000B) 0: 45 48 4C 4F 20 43 6F 6F 6B 0D 0A EHLO Cook.. == Info: SMTP 0x1fd73e777c8 state change from UPGRADETLS to EHLO == Info: schannel: client wants to read 900 bytes == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: encrypted data got 88 == Info: schannel: encrypted data buffer: offset 88 length 4987 == Info: schannel: decrypted data length: 0 == Info: schannel: decrypted data added: 0 == Info: schannel: decrypted cached: offset 0 length 4096 == Info: schannel: encrypted data length: 88 == Info: schannel: encrypted cached: offset 88 length 4987 == Info: schannel: remote party requests renegotiation == Info: schannel: renegotiating SSL/TLS connection == Info: schannel: SSL/TLS connection with outbound.att.net port 587 (step 2/3) == Info: schannel: encrypted data buffer: offset 88 length 4987 == Info: schannel: SSL/TLS handshake complete == Info: schannel: connection hostname (outbound.att.net) did not match against certificate name (smtp.mail.att.net) == Info: schannel: connection hostname (outbound.att.net) validated against certificate name (outbound.att.net) == Info: schannel: SSL/TLS connection with outbound.att.net port 587 (step 3/3) == Info: Didn't find Session ID in cache for host SMTPS://outbound.att.net:587 == Info: Added Session ID to cache for SMTPS://outbound.att.net:587 [server] == Info: schannel: stored credential handle in session cache == Info: schannel: SSL/TLS connection renegotiated == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: decrypted data buffer: offset 0 length 4096 == Info: schannel: schannel_recv cleanup == Info: schannel: client wants to read 900 bytes == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: encrypted data got 225 == Info: schannel: encrypted data buffer: offset 225 length 4987 == Info: schannel: decrypted data length: 187 == Info: schannel: decrypted data added: 187 == Info: schannel: decrypted cached: offset 187 length 4096 == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: decrypted data buffer: offset 187 length 4096 == Info: schannel: schannel_recv cleanup == Info: schannel: decrypted data returned 187 == Info: schannel: decrypted data buffer: offset 0 length 4096 <= Recv header, 71 (00000047) 0: 32 35 30 2D 68 65 72 6D 65 73 2D 2D 70 72 6F 64 250-hermes--prod 10: 75 63 74 69 6F 6E 2D 67 71 31 2D 36 62 38 35 37 uction-gq1-6b857 20: 36 63 35 63 66 2D 6E 37 68 62 32 20 48 65 6C 6C 6c5cf-n7hb2 Hell 30: 6F 20 43 6F 6F 6B 20 5B 32 34 2E 36 2E 33 35 2E o Cook [24.6.35. 40: 31 38 31 5D 29 0D 0A 181]).. <= Recv header, 16 (00000010) 0: 32 35 30 2D 50 49 50 45 4C 49 4E 49 4E 47 0D 0A 250-PIPELINING.. <= Recv header, 25 (00000019) 0: 32 35 30 2D 45 4E 48 41 4E 43 45 44 53 54 41 54 250-ENHANCEDSTAT 10: 55 53 43 4F 44 45 53 0D 0A USCODES.. <= Recv header, 14 (0000000E) 0: 32 35 30 2D 38 42 49 54 4D 49 4D 45 0D 0A 250-8BITMIME.. <= Recv header, 19 (00000013) 0: 32 35 30 2D 53 49 5A 45 20 34 31 36 39 37 32 38 250-SIZE 4169728 10: 30 0D 0A 0.. <= Recv header, 42 (0000002A) 0: 32 35 30 20 41 55 54 48 20 50 4C 41 49 4E 20 4C 250 AUTH PLAIN L 10: 4F 47 49 4E 20 58 4F 41 55 54 48 32 20 4F 41 55 OGIN XOAUTH2 OAU 20: 54 48 42 45 41 52 45 52 0D 0A THBEARER.. => Send header, 12 (0000000C) 0: 41 55 54 48 20 50 4C 41 49 4E 0D 0A AUTH PLAIN.. == Info: SASL 0x1fd73e77878 state change from STOP to PLAIN == Info: SMTP 0x1fd73e777c8 state change from EHLO to AUTH == Info: schannel: client wants to read 900 bytes == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: recv returned CURLE_AGAIN == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: decrypted data buffer: offset 0 length 4096 == Info: schannel: schannel_recv cleanup == Info: schannel: client wants to read 900 bytes == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: encrypted data got 52 == Info: schannel: encrypted data buffer: offset 52 length 4987 == Info: schannel: decrypted data length: 14 == Info: schannel: decrypted data added: 14 == Info: schannel: decrypted cached: offset 14 length 4096 == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: decrypted data buffer: offset 14 length 4096 == Info: schannel: schannel_recv cleanup == Info: schannel: decrypted data returned 14 == Info: schannel: decrypted data buffer: offset 0 length 4096 <= Recv header, 14 (0000000E) 0: 33 33 34 20 55 47 78 68 61 57 34 36 0D 0A 334 UGxhaW46.. => Send header, 54 (00000036) 0: 41 47 39 73 63 7A 59 77 4D 44 42 41 63 32 4A 6A AG9sczYwMDBAc2Jj 10: 5A 32 78 76 59 6D 46 73 4C 6D 35 6C 64 41 42 7A Z2xvYmFsLm5ldABz 20: 65 58 5A 69 5A 6D 35 6E 62 6D 70 7A 61 32 64 76 eXZiZm5nbmpza2dv 30: 61 47 6C 74 0D 0A aGlt.. == Info: SASL 0x1fd73e77878 state change from PLAIN to FINAL == Info: schannel: client wants to read 900 bytes == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: recv returned CURLE_AGAIN == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: decrypted data buffer: offset 0 length 4096 == Info: schannel: schannel_recv cleanup == Info: schannel: client wants to read 900 bytes == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: encrypted data got 75 == Info: schannel: encrypted data buffer: offset 75 length 4987 == Info: schannel: decrypted data length: 37 == Info: schannel: decrypted data added: 37 == Info: schannel: decrypted cached: offset 37 length 4096 == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: decrypted data buffer: offset 37 length 4096 == Info: schannel: schannel_recv cleanup == Info: schannel: decrypted data returned 37 == Info: schannel: decrypted data buffer: offset 0 length 4096 <= Recv header, 37 (00000025) 0: 32 33 35 20 32 2E 37 2E 30 20 41 75 74 68 65 6E 235 2.7.0 Authen 10: 74 69 63 61 74 69 6F 6E 20 73 75 63 63 65 73 73 tication success 20: 66 75 6C 0D 0A ful.. == Info: SASL 0x1fd73e77878 state change from FINAL to STOP == Info: SMTP 0x1fd73e777c8 state change from AUTH to STOP == Info: STATE: PROTOCONNECTING => DO handle 0x1fd73e75d48; line 2192 == Info: DO phase starts => Send header, 28 (0000001C) 0: 56 52 46 59 20 -- -- -- -- -- -- -- -- -- -- -- VRFY xxxxxxxx@xx (actual email redacted) 10: -- -- -- -- -- -- -- -- -- -- 0D 0A xxxxxx.xxx.. == Info: SMTP 0x1fd73e777c8 state change from STOP to COMMAND == Info: STATE: DO => DOING handle 0x1fd73e75d48; line 2259 == Info: schannel: client wants to read 900 bytes == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: encrypted data got 71 == Info: schannel: encrypted data buffer: offset 71 length 4987 == Info: schannel: decrypted data length: 33 == Info: schannel: decrypted data added: 33 == Info: schannel: decrypted cached: offset 33 length 4096 == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: decrypted data buffer: offset 33 length 4096 == Info: schannel: schannel_recv cleanup == Info: schannel: decrypted data returned 33 == Info: schannel: decrypted data buffer: offset 0 length 4096 <= Recv header, 33 (00000021) 0: 35 30 32 20 35 2E 33 2E 33 20 56 52 46 59 20 69 502 5.3.3 VRFY i 10: 73 20 6E 6F 74 20 73 75 70 70 6F 72 74 65 64 0D s not supported. 20: 0A . == Info: Command failed: 502 == Info: DO phase failed == Info: multi_done[DOING]: status: 8 prem: 0 done: 0 == Info: multi_done, not reusing connection=0, forbid=0, close=1, premature=0, conn_multiplex=0 == Info: The cache now contains 0 members == Info: Curl_disconnect(conn #0, dead=0) => Send header, 6 (00000006) 0: 51 55 49 54 0D 0A QUIT.. == Info: SMTP 0x1fd73e777c8 state change from COMMAND to QUIT == Info: schannel: client wants to read 900 bytes == Info: schannel: encrypted data buffer: offset 0 length 4987 == Info: schannel: encrypted data got 112 == Info: schannel: encrypted data buffer: offset 112 length 4987 == Info: schannel: decrypted data length: 34 == Info: schannel: decrypted data added: 34 == Info: schannel: decrypted cached: offset 34 length 4096 == Info: schannel: encrypted data length: 40 == Info: schannel: encrypted cached: offset 40 length 4987 == Info: schannel: server closed the connection == Info: schannel: schannel_recv cleanup == Info: schannel: decrypted data returned 34 == Info: schannel: decrypted data buffer: offset 0 length 4096 <= Recv header, 34 (00000022) 0: 32 32 31 20 53 65 72 76 69 63 65 20 43 6C 6F 73 221 Service Clos 10: 69 6E 67 20 74 72 61 6E 73 6D 69 73 73 69 6F 6E ing transmission 20: 0D 0A .. == Info: SMTP 0x1fd73e777c8 state change from QUIT to STOP == Info: Closing connection == Info: schannel: shutting down SSL/TLS connection with outbound.att.net port 587 == Info: schannel: clear security context handle
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html
