cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl and http redirects; possible security implications

From: Alex Bligh <alex_at_alex.org.uk>
Date: Mon, 19 Apr 2010 12:19:25 +0100

Daniel,

--On 19 April 2010 13:11:05 +0200 Daniel Stenberg <daniel_at_haxx.se> wrote:

> But regarding the three different operators to negate a protocol. Why
> can't we just settle with a single one? It'll be easier to document and
> it'll be less confusing for users who read others' command lines.

Just trying to please everyone. My preference would be for "-" as it's
the most logical given "+" and "=", notwithstanding the option confusion.
Apart from that, I prefer ~ to ! on the basis of minimising shell escapes.
If you are happy with using "-", I will delete the two case: statements
for ~ and !.

Is there a better way to read the list of protocols and CURLPROTO_
constants from libcurl? And the default values for the two protocol
masks? I didn't want to touch libcurl unless necessary, as I have
to admit to not being entirely sure how the ABI/API compatibility
worked.

-- 
Alex Bligh
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-19