Skip to content

Instantly share code, notes, and snippets.

View Ugoku's full-sized avatar

Sander de Jong Ugoku

View GitHub Profile
array(10) {
'wrapper_data' =>
array(14) {
[0] =>
string(15) "HTTP/1.1 200 OK"
[1] =>
string(21) "Content-Length: 57251"
[2] =>
string(30) "Content-Type: application/json"
[3] =>
array(10) {
'wrapper_data' =>
array(9) {
[0] =>
string(15) "HTTP/1.1 200 OK"
[1] =>
string(13) "Server: nginx"
[2] =>
string(35) "Date: Wed, 24 Jun 2015 11:03:10 GMT"
[3] =>
@Ugoku
Ugoku / gist:1d1e3b781821231f9daf
Created June 23, 2015 09:16
Composer test script
<?php
$url = 'https://packagist.org/p/symfony/finder$d376d819fde50de85ad17bb8ec9e1296899e51197cb48d7047cac6bf22a9b813.json';
$headers = array(
'User-Agent: Composer/source (Windows NT; 6.2; PHP 5.6.5)',
'Accept-Encoding: gzip',
'Connection: close',
);