You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That curl would try to use FTP to the site and use the given name and password for login. Instead it made a HTTP request to the given host.
The reason for this mistake is that the "protocol guessing" is done on the host name part when the credentials are still prepended! This does also make something like curl ftp.user:pwd@example.com (wrongly) guess on FTP based on the user name and not on the host name!
I have extended test 1560 with these two examples and will work on a PR.
curl/libcurl version
latest git
operating system
any
The text was updated successfully, but these errors were encountered:
I did this
I expected the following
That curl would try to use FTP to the site and use the given name and password for login. Instead it made a HTTP request to the given host.
The reason for this mistake is that the "protocol guessing" is done on the host name part when the credentials are still prepended! This does also make something like
curl ftp.user:pwd@example.com
(wrongly) guess on FTP based on the user name and not on the host name!I have extended test 1560 with these two examples and will work on a PR.
curl/libcurl version
latest git
operating system
any
The text was updated successfully, but these errors were encountered: