title: Composer update/create-project/install - HTTP Request failed
body: <p>Recently I learned about Laravel 4.2. Then I switched to Laravel 5. All the time I've used composer to add another dependencies and stuff, I had no problems at all.</p>
  
  <p>Last Thursday I've created a new project using <code>composer create-project laravel/laravel dir_name --prefer-dist</code>. All went ok.</p>
  
  <p>But since Friday, I cannot do anything. Every time I try to create new project, update dependencies or do anything, there is a long wait (almost like freeze) and then errors. They usually are about <code>HTTP request failed</code> or problems with <code>packagist.org</code>.</p>
  
  <p>At work I don't have any issues. My friend doesn't either. It worked on my PC and suddenly stopped. Please help.</p>
  
  <pre><code>C:\xampp\htdocs\dir_name&gt;composer update
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  The "http://packagist.org/p/symfony/routing$0b411061e305b2d7a108caca01c21b859b6a2be133eff320b93e64d8
  c5759e2b.json" file could not be downloaded: failed to open stream: HTTP request failed!
  http://packagist.org could not be fully loaded, package information was loaded from the local cache
  and may be out of date
  
  [here freezes for good (more than 20 minutes), killed]
  </code></pre>
  
  <p>My composer is up-to-date:</p>
  
  <pre><code>C:\xampp\htdocs\dir_name&gt;composer self-update
  You are already using composer version 9fb2d4f2d642a0749decb41bc2fe4be2bf8bef7a.
  
  C:\xampp\htdocs\dir_name&gt;
  </code></pre>
  
  <p>And that's <code>composer update -vvv</code>:</p>
  
  <pre><code>C:\xampp\htdocs\dir_name&gt;composer update -vvv
  Reading ./composer.json
  Loading config file C:/Users/Forien/AppData/Roaming/Composer/config.json
  Loading config file C:/Users/Forien/AppData/Roaming/Composer/auth.json
  Loading config file ./composer.json
  Executing command (CWD): git describe --exact-match --tags
  Executing command (CWD): git branch --no-color --no-abbrev -v
  Executing command (CWD): hg branch
  Executing command (CWD): svn info --xml
  Failed to initialize global composer: Composer could not find the config file: C:/Users/Forien/AppDa
  ta/Roaming/Composer/composer.json
  To initialize a project, please create a composer.json file as described in the https://getcomposer.
  org/ "Getting Started" section
  Loading composer repositories with package information
  Downloading https://packagist.org/packages.json
  
  [freeze for over 15 minutes here, killed]
  </code></pre>
  
  <p>In home I'm behind routers, but no proxy I'm aware of. I have no idea what has changed. As of <code>composer.json</code> - even with brand new clean <code>.json</code> from <code>laravel/laravel</code>, update does not launch properly. </p>
  
  <p>Any help appreciated. Do you have any ideas why this happened or how to fix this?</p>
  
  <h1>Edit</h1>
  
  <pre><code>composer diagnose
  Checking composer.json: OK
  Checking platform settings: OK
  Checking git settings: OK
  Checking http connectivity: FAIL
  [Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be
   downloaded: SSL: Handshake timed out
  Failed to enable crypto
  failed to open stream: operation failed
  Checking github.com oauth access: OK
  Checking disk free space: OK
  Checking composer version: OK
  </code></pre>
  
  <h2>Composer.json</h2>
  
  <pre><code>{
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": ["framework", "laravel"],
      "license": "MIT",
      "type": "project",
      "require": {
          "laravel/framework": "5.0.*"
      },
      "require-dev": {
          "phpunit/phpunit": "~4.0",
          "phpspec/phpspec": "~2.1",
          "filp/whoops": "^1.1"
      },
      "autoload": {
          "classmap": [
              "database"
          ],
          "psr-4": {
              "App\\": "app/"
          }
      },
      "autoload-dev": {
          "classmap": [
              "tests/TestCase.php"
          ]
      },
      "scripts": {
          "post-install-cmd": [
              "php artisan clear-compiled",
              "php artisan optimize"
          ],
          "post-update-cmd": [
              "php artisan clear-compiled",
              "php artisan optimize"
          ],
          "post-create-project-cmd": [
              "php -r \"copy('.env.example', '.env');\"",
              "php artisan key:generate"
          ]
      }
  }
  </code></pre>