Jan Prieser
cc1e10e8ae
allow FileDownloader to use username:password@ info when downloading through https?
11 years ago
Jordi Boggiano
8d0b7f278e
CS fixes
11 years ago
Pavel Savinov
831bd844bd
Almost PHPDoc problems fixed
11 years ago
Jordi Boggiano
1debe22412
Add HTTPS_PROXY_REQUEST_FULLURI to disable the request_fulluri only for https requests, fixes #1946 , fixes #1839
11 years ago
Stephan Hochdörfer
4d92626ef0
Fix for recursion problem with wrong http basic auth credentials. First
...
I got an "array_replace_recursive(): Argument #2 is not an array" error
and after fixing that it resulted in another error saying "Undefined
variable: result".
12 years ago
Jordi Boggiano
29fcca8595
Avoid weird recursion pattern by retrying after the first request is complete
12 years ago
Jordi Boggiano
4d52900dff
Bypass failure if the server is just asking for credentials, fixes #1845
12 years ago
Jordi Boggiano
e78a21015b
Dont try to gzip decode empty responses, refs #1846
12 years ago
Jordi Boggiano
81f1451118
Clarify exception message when an empty response is returned
12 years ago
Jordi Boggiano
a9db844a41
Merge remote-tracking branch 'bitExpert/feature/repo_basic_auth'
12 years ago
Jordi Boggiano
3b97e2e260
Add support for new verbosity levels, and initial debug output
12 years ago
Jordi Boggiano
842155d69e
Use original URL for exceptions, not the one containing authorization, fixes #1722
12 years ago
Stephan Hochdörfer
df897b42c2
Removed dead statement.
12 years ago
Stephan Hochdörfer
906563451e
Reverted the last changes. Changed logic in callbackGet() method to
...
respect the 401 handling also if STREAM_NOTIFY_FAILURE fires as on my
local machine the handling of STREAM_NOTIFY_AUTH_REQUIRED never got
executed.
12 years ago
Stephan Hochdörfer
dcdcf57f3f
Moved 401 handling from ComposerRepository to RemoteFilesystem and
...
displaying the url when asking for the credentials.
12 years ago
Stephan Hochdörfer
f2afbbac2f
Extended the fetchFile() method of the ComposerRepository class to be
...
able to deal with http basic auth. In case the remote resource responds
with a 401 ask the user for access credentials and retry quering the
resource again.
12 years ago
Jasper N. Brouwer
4347cb7a55
Fixed the "access_token query param" ( 5b1f314
) fix
12 years ago
Jordi Boggiano
5b1f3145c2
Update the way github authorization is handled, fixes #1632
...
Since api.github.com redirects to s3 for downloads and s3 does not like Authorization
headers, we have to rely on the access_token query param. Otherwise php follows redirects
but still sends the Authorization header to all following requests.
12 years ago
Jordi Boggiano
b8da471f9a
Clarify transport exception for 403s, fixes #1416
12 years ago
Igor Wiedler
4959c2bdc6
Replace references of a11n with a12n where appropriate
...
Authorization => Authentication.
12 years ago
Pascal Borreli
83fd3967f0
Fixed PHPDoc
12 years ago
Jordi Boggiano
43c21a736c
Send headers as array instead of one big string
12 years ago
Jordi Boggiano
73aea05907
Send source instead of @package_version@ for the composer version in UA
12 years ago
Jordi Boggiano
7d4857fc5b
Catch all 4**/5** responses
12 years ago
Jordi Boggiano
3b01d26d67
Swap user credentials for an OAuth token from GitHub
12 years ago
Thomas Adam
1bd5d88b02
quick workaround for Github API limit
12 years ago
Jordi Boggiano
852c369575
Improve error reporting on downloads and copies, refs #1228
12 years ago
Sander Marechal
0d9e08f9af
Use array_replace_recursive() instead of array_merge_recursive()
12 years ago
Sander Marechal
6cf860669f
Add repository stream context options
...
Add support for passing stream context options to the
StreamContextFactory. This allows support for SSH keyfiles, SSL
certificates and much more. Example:
{
"repositories": [
{
"type": "composer",
"url": "ssh2.sftp://host:22/path/to/packages.json",
"options": {
"ssh2": {
"username": "composer",
"pubkey_file": "/path/to/composer.key.pub",
"privkey_file": "/path/to/composer.key"
}
}
}
]
}
12 years ago
Jordi Boggiano
a54bf6269e
Improve error messages when network failures occur
12 years ago
Ismael Ambrosi
b368031657
Fixed typos
12 years ago
Jordi Boggiano
66e9dcddf4
CS fixes
12 years ago
Jordi Boggiano
b3c395b8d2
Add PHP info to UA string
12 years ago
Jordi Boggiano
3639611bc6
Add OS/Version to UserAgent
12 years ago
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
13 years ago
Jordi Boggiano
c754f96677
Removed last password/username from IOInterface
13 years ago
Jordi Boggiano
5c5f87008f
Report proper error if a write fails instead of saying the download failed
13 years ago
Jordi Boggiano
31ed0c1fb0
Fix progress display getting stuck at 95%
13 years ago
Jordi Boggiano
22149d3a70
Fix gzip decoding after a redirect
13 years ago
Jordi Boggiano
f98bd971f2
Add Gzip handling to RemoteFilesystem
13 years ago
Jordi Boggiano
659775a607
Merge remote-tracking branch 'simensen/GitHub404FixPartTwo'
13 years ago
Beau Simensen
ce08b2fc4f
Fix HTTPS through Proxy errors.
13 years ago
Beau Simensen
6efbc7d531
Enhanced GitHub API/Private Repository support
13 years ago
Jordi Boggiano
89f69256f8
Merge remote-tracking branch 'kostiklv/console-overwrite-fix'
13 years ago
Jordi Boggiano
a4f9e03d35
Add workaround for PHP bug #61336
13 years ago
Jordi Boggiano
3e22084ea4
Overhaul VcsDrivers, introduce TransportException for remote filesystem errors
13 years ago
Konstantin Tjuterev
0b7896cdad
Simplified & fixed ConsoleIO->overwrite, corrected output when downloading with progress
13 years ago
Martin Hasoň
303dae7968
Fixed typos and bugs in the RemoteFilesystem class
13 years ago
Jordi Boggiano
4d7ecdcb69
Fix authentication behavior when re-entering get()
13 years ago
Jordi Boggiano
a8aef7e203
Text tweaks
13 years ago