composer/composer — pull request #2015 by jaypea (2013-06-17 13:50:29+00:00)
Title: allow FileDownloader to use username:password@ info when downloading 

allow FileDownloader to use username:password@ info when downloading through https.

while searching for a solution to another problem i figured that it is not possible to download files which require authentication and credentials were provided in the url itself.
http://username:password@example.com/file.zip did not work before.

btw: why is there a $originUrl and a $fileUrl in the RemoteFilesystem?
i couldn't figure out the usecase.