{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey/issues/404","labels_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/404/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/404/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/404/events","html_url":"https://github.com/chocolatey/chocolatey/issues/404","id":25912974,"number":404,"title":"407 Authentication error through proxy","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-01-20T11:26:43Z","updated_at":"2015-02-02T07:19:55Z","closed_at":null,"body":"Hello !\r\n\r\nWhen I try to install a package with the command \"cinst\", I have a proxy authentication error. I could install chocolatey with the command line found here :\r\n\r\nhttps://gist.github.com/erichexter/3717010\r\n\r\nAnd when I do, for example this command \"cinst java.jdk\", I have this :\r\n\r\n```\r\nChocolatey (v0.9.8.23) is installing 'java.jdk' and dependencies. By installing you accept the license for 'java.jdk' and each dependency you are installing.\r\n______ java.jdk v7.0.51.2 ______\r\nDownloading JDK from http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-windows-x64.exe\r\nWrite-Error : Java.JDK did not finish successfully. Boo to the chocolatey gods!\r\n-----------------------\r\n[ERROR] The remote server returned an error: (407) Proxy Authentication Required.\r\n-----------------------\r\nAt C:\\Chocolatey\\chocolateyinstall\\helpers\\functions\\Write-ChocolateyFailure.ps1:30 char:13\r\n+     Write-Error <<<<  $errorMessage\r\n    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException\r\n    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error\r\n \r\nWrite-Error : Package 'java.jdk v7.0.51.2' did not install successfully: Exception calling \"DownloadFile\" with \"2\" argu\r\nment(s): \"The remote server returned an error: (407) Proxy Authentication Required.\"\r\nAt C:\\Chocolatey\\chocolateyinstall\\functions\\Chocolatey-NuGet.ps1:90 char:28\r\n+                 Write-Error <<<<  \"Package `'$installedPackageName v$installedPackageVersion`' did not install succes\r\nsfully: $($_.Exception.Message)\"\r\n    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException\r\n    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Write-Error\r\n \r\nFinished installing 'java.jdk' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure.\r\nReading environment variables from registry. Please wait... Done.\r\n```\r\nMy environment variables \"http.proxy\" and \"https.proxy\" has been setted with my proxy values.\r\n\r\nAny idea of how I can solve this ?\r\n\r\nThanks in advance.\r\n\r\nJulien."},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey/issues/comments/72415275","html_url":"https://github.com/chocolatey/chocolatey/issues/404#issuecomment-72415275","issue_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/404","id":72415275,"user":{"login":"evanw21","id":10806240,"avatar_url":"https://avatars.githubusercontent.com/u/10806240?v=3","gravatar_id":"","url":"https://api.github.com/users/evanw21","html_url":"https://github.com/evanw21","followers_url":"https://api.github.com/users/evanw21/followers","following_url":"https://api.github.com/users/evanw21/following{/other_user}","gists_url":"https://api.github.com/users/evanw21/gists{/gist_id}","starred_url":"https://api.github.com/users/evanw21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanw21/subscriptions","organizations_url":"https://api.github.com/users/evanw21/orgs","repos_url":"https://api.github.com/users/evanw21/repos","events_url":"https://api.github.com/users/evanw21/events{/privacy}","received_events_url":"https://api.github.com/users/evanw21/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T07:19:55Z","updated_at":"2015-02-02T07:19:55Z","body":"Hi, Another vote for this issue.  The documentation regarding non-AD-integrated Proxies is possibly misleading.  As best I can tell the format that should be used when providing SetEnvironmentVariable values should be something like:\r\nhttp://DOMAIN\\USERNAME:PASSWORD@PROXYSERVER:PROXYPORT if it is to work with nuget\r\nhttp://docs.nuget.org/consume/nuget-config-settings\r\n\r\nThis isn't observed outside of nuget\r\nhttps://github.com/chocolatey/chocolatey/blob/master/src/helpers/functions/Get-WebFile.ps1\r\n\r\nMaybe something can be learnt from the nuget implementation?\r\nhttp://nuget.codeplex.com/SourceControl/latest#src/Core/Http/ProxyCache.cs"}}