cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Inconsistent text case using CURLINFO_EFFECTIVE_URL

From: <mtroispont_at_hush.com>
Date: Tue, 13 May 2014 10:06:38 +0200

On 05/13/2014 at 9:53 AM, "Daniel Stenberg" <daniel_at_haxx.se> wrote:
>... but why is that a problem?

It's a problem because URLs are case sensitive.

If the fact that "http://" is lower or uppercase doesn't depend on the answer of the remote server (does it?), I expect the result to be consistent.

For instance, when running a script that compares URLs or checks against a hash, it will fail because of this inconsistency - except if a function that identifies "https?://" and lowercase it is run against every URL before storing it.

Best,

Marc

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