cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: [PATCH] Curl_gethostname() may or may not return the hostname as a FQDN

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Tue, 13 Sep 2011 21:55:10 +0100

Hi Daniel,

> First, thanks for bringing it back. I had pushed it a bit too far
> away in my brain to bring it back on my own!

No problem ;-)

> I think making it behave consistently makes sense so please
> rebase the patch and resubmit it and let's get it merged.

No worries - Just downloading v7.22.0 source from GIT as we speak.

> I also think we should document that an SMTP client using
> libcurl is encouraged to provide the actual host name in the
> URL so that libcurl won't have to guess (wrongly) about it.
> It probably makes sense to add a whole section somewhere
> about the special things and feature we have in URLs for
> protocols. (And refer to that from the CURLOPT_URL description in
> curl_easy_setopt.3 and the --url description in curl.1)
>
> Possibly a new section to add to libcurl.3 ?

Indeed - Is this something you would like me to do?

I understand that the format of the URL for SMTP to be:

smtp://<server address>:<port number>/<hostname>

For example:

smtp://smtp.domain.com:25/hostnametouse.domain.com

Kind Regards

Steve

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-13