cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: [PATCH] POP3: Expanded the supported commands

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Sun, 26 Feb 2012 16:44:08 +0000

Hi Daniel,

> > Unless I've missed something (which is quite possible) what's
> > curl.exe's command line equivalent of CURLOPT_NOBODY?
>
> -I, --head

Thank you for that... I was looking for body, nobody and noheader related
arguments, I didn't realise --head set this :-/

I have now tested the existing pop3 functionality in the release of v7.24.0
and it doesn't appear that the CURLOPT_NOBODY has any effect on the existing
code even though functions like Curl_setup_transfer() won't do anything if
this variable is set.

I tested this with "curl -k --url pop3://pop3.domain.com --user username
--head" and "curl -k --url pop3://pop3.domain.com/1 --user username --head"

It seems that because pp->cache has some content in pop3_state_retr_resp()
and pop3_state_list_resp() that the body is transferred to the application.
Do these functions need to do:

If(pp->cache && !data->set.opt_no_body)

For example or would you expect the cache to be empty if CURLOPT_NOBODY was
set?

Cheers

Steve

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-26