You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it does't work. libcurl gets stuck waiting for data until timeout. (It only works with CURLOPT_NOBODY set to 0).
POP3 expects "\x0d\x0a\x2e\x0d\x0a" (CRLF.CRLF) even for single-line response for certain commands. I have seen this with following commands UIDL msg, STAT, RSET, NOOP etc.
Question:
Is there any workaround to store response data from custom POP3 requests, which return single line response with EOB as "CRLF"?
(I don't want to use "UIDL" that returns list of msg, UIDL pair and parse it to get specific UIDL)
I expected the following
When performing "UIDL msg", curl_easy_perform should return immediately after receiving + OK < msg > < UIDL > CRLF
The text was updated successfully, but these errors were encountered:
nemaakhilesh
changed the title
pop3 expects response ending with CRLF.CRLF for single-line response from certain commands.
POP3 expects "CRLF.CRLF" eob for single-line response from certain commands.
Mar 30, 2016
nemaakhilesh
changed the title
POP3 expects "CRLF.CRLF" eob for single-line response from certain commands.
libcurl POP3 expects "CRLF.CRLF" eob for single-line response from certain commands.
Mar 30, 2016
This is currently intended behaviour, in that you have to tell libcurl not to expect a body, when dealing with one line response commands. Please see the POP3 examples and test cases which show this for the NOOP and DELE commands.
However, we are open to code modifications which negate the need to do this without breaking API compatibility if you fancy a challenge ;-)
I did this
I have a situation where I need to get UIDL for specific message number in POP3 mailbox. Used following
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "UIDL 1"))
But it does't work. libcurl gets stuck waiting for data until timeout. (It only works with CURLOPT_NOBODY set to 0).
POP3 expects "\x0d\x0a\x2e\x0d\x0a" (CRLF.CRLF) even for single-line response for certain commands. I have seen this with following commands UIDL msg, STAT, RSET, NOOP etc.
Question:
Is there any workaround to store response data from custom POP3 requests, which return single line response with EOB as "CRLF"?
(I don't want to use "UIDL" that returns list of msg, UIDL pair and parse it to get specific UIDL)
I expected the following
When performing "UIDL msg", curl_easy_perform should return immediately after receiving + OK < msg > < UIDL > CRLF
curl/libcurl version
curl 7.45.0
curl 7.45.0 (x86_64-pc-linux-gnu) libcurl/7.45.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 libssh2/1.4.4_DEV librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets
operating system
Ubuntu 14.04.3 LTS
3.11.0-26-generic
The text was updated successfully, but these errors were encountered: