cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1284505 ] curl uses http when protocol not specified

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 07 Sep 2005 23:18:01 -0700

Bugs item #1284505, was opened at 2005-09-08 07:37
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1284505&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: documentation
Group: wrong behaviour
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Stephen Cristol (cristol)
Assigned to: Daniel Stenberg (bagder)
Summary: curl uses http when protocol not specified

Initial Comment:
Documentation issue:

The curl man page specifies that URLs given to the curl
command should follow RFC 2396. My skimming of RFC 2396
and RFC 3986 found no indication that a default
protocol should be assumed when one is not specified.
Nevertheless, curl uses the HTTP protocol if one is not
specified. I would suggest that this default should be
noted in the man page, except...

Behavior issue:

It would seem undesirable to use a default protocol for
curl because it makes it easier to accidently log
passwords. For example, an intended authenticated ftp
request like:

  curl user:pass_at_ftp.example.com

will probably place the user's password into a web
server log if ftp.example.com is running a web server.

Versions:

I checked the latest documentation on the web site:

  http://curl.haxx.se/docs/manpage.html

But I've only tested this with:

  curl 7.10.2 (powerpc-apple-darwin7.0) libcurl/7.10.2
OpenSSL/0.9.7g zlib/1.1.4

Stephen

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2005-09-08 08:18

Message:
Logged In: YES
user_id=1110

Thanks, I've now added a paragraph about this
protocol-"guessing" to the man page.

But yes, it still works like this even when you use modern
versions of curl.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1284505&group_id=976
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-tracker
Received on 2005-09-08

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET