Re: CURL_FTP_HTTPSTYLE_HEAD

2024-01-19 Thread Nejc Drašček via curl-library
I was playing with various (wrong) options to try and get the output, prior to starting this thread, but was unsuccessful. Now I got it working with CURLOPT_WRITEFUNCTION and CURLOPT_WRITEDATA. Thank you for clearing things up. Best regards!     Nejc -- Unsubscribe:

Re: CURL_FTP_HTTPSTYLE_HEAD

2024-01-18 Thread Dan Fandrich via curl-library
On Wed, Jan 17, 2024 at 03:28:11PM +0100, Nejc Drašček via curl-library wrote: > I'm using ftp library ( github.com/embeddedmz/ftpclient-cpp ), which under > the hood uses libcurl, and some requests are "polluting" stdout with http > headers: > > Last-Modified: Mon, 15 Jan 2024 14:32:44 GMT >

Re: CURL_FTP_HTTPSTYLE_HEAD

2024-01-18 Thread Nejc Drašček via curl-library
Define in title of this topic, github link: https://github.com/curl/curl/blob/master/lib/ftp.c#L230 -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html

Re: CURL_FTP_HTTPSTYLE_HEAD

2024-01-17 Thread Dan Fandrich via curl-library
On Wed, Jan 17, 2024 at 03:28:11PM +0100, Nejc Drašček via curl-library wrote: > I'm using ftp library ( github.com/embeddedmz/ftpclient-cpp ), which under > the hood uses libcurl, and some requests are "polluting" stdout with http > headers: > > Last-Modified: Mon, 15 Jan 2024 14:32:44 GMT >

CURL_FTP_HTTPSTYLE_HEAD

2024-01-17 Thread Nejc Drašček via curl-library
Hi, I'm using ftp library ( github.com/embeddedmz/ftpclient-cpp ), which under the hood uses libcurl, and some requests are "polluting" stdout with http headers: Last-Modified: Mon, 15 Jan 2024 14:32:44 GMT Content-Length: 0 Accept-ranges: bytes According to comment in lib/ftp.c this define