Archive-Har

 view release on metacpan or  search on metacpan

t/chrome.t  view on Meta::CPAN

            },
            {
              "name": "expires",
              "value": "Sat, 14 Apr 2018 22:51:30 GMT"
            }
          ],
          "cookies": [],
          "content": {
            "size": 436180,
            "mimeType": "text/javascript",
            "text": "/* _GlobalPrefix_ */\n/* _Module_:quantum */\ntry{\nvar s_,s_aaa=\"function\"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError(\"ES3 does not support getters and setters.\"...
          },
          "redirectURL": "",
          "headersSize": -1,
          "bodySize": 0,
          "_transferSize": 0
        },
        "cache": {},
        "timings": {
          "blocked": 0.133999999889056,
          "dns": -1,

t/firebug_cookies_n_cache.t  view on Meta::CPAN

          ],
          "headersSize": 663,
          "bodySize": -1
        },
        "response": {
          "status": 200,
          "statusText": "OK",
          "httpVersion": "HTTP/1.1",
          "cookies": [
            {
              "name": "accountrecoverylocale",
              "value": "en",
              "expires": "2012-04-10T10:22:42.000+10:00",
              "path": "/accounts/recovery",
              "httpOnly": true
            },
            {
              "name": "mainpageaccountrecoveryparamscookie",
              "value": "CmJBSHdHa1JuSXI5TUhydFN0MTg1T05SMWxvLXBDcmtZejZ5TTZPc1E3YlZ6bU1uczNsMTNCV2lSOVBMV2lEcTBsNnJMWDJEdkg4TTN0d2c2eWFaeU9kRnFLbE1JV05BOUhtQRIdaHR0cHM6Ly9tYWlsLmdvb2dsZS5jb20vbWFpbC8gspOJo8ub6qNN",
              "expires": "2012-04-10T10:22:42.000+10:00",
              "path": "/accounts/recovery",

t/firebug_cookies_n_cache.t  view on Meta::CPAN

            {
              "name": "Expires",
              "value": "Fri, 01 Jan 1990 00:00:00 GMT"
            },
            {
              "name": "Date",
              "value": "Tue, 03 Apr 2012 00:22:42 GMT"
            },
            {
              "name": "Set-Cookie",
              "value": "accountrecoverylocale=en; Expires=Tue, 10-Apr-2012 00:22:42 GMT; Path=/accounts/recovery; Secure; HttpOnly\nmainpageaccountrecoveryparamscookie=CmJBSHdHa1JuSXI5TUhydFN0MTg1T05SMWxvLXBDcmtZejZ5TTZPc1E3YlZ6bU1uczNsMTNCV2lSOVBMV2...
            },
            {
              "name": "Content-Type",
              "value": "text/html; charset=UTF-8"
            },
            {
              "name": "Content-Encoding",
              "value": "gzip"
            },
            {

t/firebug_cookies_n_cache.t  view on Meta::CPAN

      {
        "pageref": "page_7372",
        "startedDateTime": "2012-04-03T10:22:45.260+10:00",
        "time": 63,
        "request": {
          "method": "GET",
          "url": "https://www.google.com/accounts/recovery/resources/3135485014-options_bin.js",
          "httpVersion": "HTTP/1.1",
          "cookies": [
            {
              "name": "accountrecoverylocale",
              "value": "en"
            },
            {
              "name": "mainpageaccountrecoveryparamscookie",
              "value": "CmJBSHdHa1JuSXI5TUhydFN0MTg1T05SMWxvLXBDcmtZejZ5TTZPc1E3YlZ6bU1uczNsMTNCV2lSOVBMV2lEcTBsNnJMWDJEdkg4TTN0d2c2eWFaeU9kRnFLbE1JV05BOUhtQRIdaHR0cHM6Ly9tYWlsLmdvb2dsZS5jb20vbWFpbC8gspOJo8ub6qNN"
            },
            {
              "name": "GMAIL_RTT",
              "value": "270"
            },

t/firebug_cookies_n_cache.t  view on Meta::CPAN

            {
              "name": "Connection",
              "value": "keep-alive"
            },
            {
              "name": "Referer",
              "value": "https://www.google.com/accounts/recovery?hl=en&gaps=AHwGkRnIr9MHrtSt185ONR1lo-pCrkYz6yM6OsQ7bVzmMns3l13BWiR9PLWiDq0l6rLX2DvH8M3twg6yaZyOdFqKlMIWNA9HmA&service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F"
            },
            {
              "name": "Cookie",
              "value": "accountrecoverylocale=en; mainpageaccountrecoveryparamscookie=CmJBSHdHa1JuSXI5TUhydFN0MTg1T05SMWxvLXBDcmtZejZ5TTZPc1E3YlZ6bU1uczNsMTNCV2lSOVBMV2lEcTBsNnJMWDJEdkg4TTN0d2c2eWFaeU9kRnFLbE1JV05BOUhtQRIdaHR0cHM6Ly9tYWlsLmdvb2dsZS5j...
            }
          ],
          "queryString": [],
          "headersSize": 811,
          "bodySize": -1
        },
        "response": {
          "status": 200,
          "statusText": "OK",
          "httpVersion": "HTTP/1.1",

t/firebug_cookies_n_cache.t  view on Meta::CPAN

      {
        "pageref": "page_7372",
        "startedDateTime": "2012-04-03T10:22:45.260+10:00",
        "time": 171,
        "request": {
          "method": "GET",
          "url": "https://www.google.com/accounts/recovery/resources/2134501236-all-css-kennedy.css",
          "httpVersion": "HTTP/1.1",
          "cookies": [
            {
              "name": "accountrecoverylocale",
              "value": "en"
            },
            {
              "name": "mainpageaccountrecoveryparamscookie",
              "value": "CmJBSHdHa1JuSXI5TUhydFN0MTg1T05SMWxvLXBDcmtZejZ5TTZPc1E3YlZ6bU1uczNsMTNCV2lSOVBMV2lEcTBsNnJMWDJEdkg4TTN0d2c2eWFaeU9kRnFLbE1JV05BOUhtQRIdaHR0cHM6Ly9tYWlsLmdvb2dsZS5jb20vbWFpbC8gspOJo8ub6qNN"
            },
            {
              "name": "GMAIL_RTT",
              "value": "270"
            },

t/firebug_cookies_n_cache.t  view on Meta::CPAN

            {
              "name": "Connection",
              "value": "keep-alive"
            },
            {
              "name": "Referer",
              "value": "https://www.google.com/accounts/recovery?hl=en&gaps=AHwGkRnIr9MHrtSt185ONR1lo-pCrkYz6yM6OsQ7bVzmMns3l13BWiR9PLWiDq0l6rLX2DvH8M3twg6yaZyOdFqKlMIWNA9HmA&service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F"
            },
            {
              "name": "Cookie",
              "value": "accountrecoverylocale=en; mainpageaccountrecoveryparamscookie=CmJBSHdHa1JuSXI5TUhydFN0MTg1T05SMWxvLXBDcmtZejZ5TTZPc1E3YlZ6bU1uczNsMTNCV2lSOVBMV2lEcTBsNnJMWDJEdkg4TTN0d2c2eWFaeU9kRnFLbE1JV05BOUhtQRIdaHR0cHM6Ly9tYWlsLmdvb2dsZS5j...
            }
          ],
          "queryString": [],
          "headersSize": 831,
          "bodySize": -1
        },
        "response": {
          "status": 200,
          "statusText": "OK",
          "httpVersion": "HTTP/1.1",

t/firebug_cookies_n_cache.t  view on Meta::CPAN

  }
}
_FIREBUG_RESULTS_
ok($har->string($firebug_gmail_string), "Successfully read firebug har archive for https://accounts.google.com");
my (undef, $secondEntry) = $har->entries();
ok(scalar $secondEntry->request()->cookies() == 1, "INPUT: Firebug's archive second entry request has a cookie list with 1 entries");
my ($cookie) = $secondEntry->request->cookies();
ok($cookie->name() eq 'GMAIL_RTT', "INPUT: Firebug's archive second entry request cookie has a name of 'GMAIL_RTT'");
ok($cookie->value() eq '270', "INPUT: Firebug's archive second entry request cookie has a value of '270'");
($cookie) = $secondEntry->response()->cookies();
ok($cookie->name() eq 'accountrecoverylocale', "INPUT: Firebug's archive second entry response cookie has a name of 'accountrecoverylocale'");
ok($cookie->value() eq 'en', "INPUT: Firebug's archive second entry response cookie has a name of 'en'");
ok($cookie->expires() eq '2012-04-10T10:22:42.000+10:00', "INPUT: Firebug's archive second entry response cookie has a expires of '2012-04-10T10:22:42.000+10:00'");
ok($cookie->path() eq '/accounts/recovery', "INPUT: Firebug's archive second entry response cookie has a path of '/accounts/recovery'");
ok($cookie->http_only(), "INPUT: Firebug's archive second entry response cookie has httpOnly set to true");
ok(not(defined($cookie->secure())), "INPUT: Firebug's archive second entry response cookie does not have secure set at all");
my $firebug_ref = $har->hashref();
ok(scalar @{$firebug_ref->{log}->{entries}->[1]->{request}->{cookies}} == 1, "OUTPUT: Firebug's archive second entry request has a cookie list with 1 entries");
ok($firebug_ref->{log}->{entries}->[1]->{request}->{cookies}->[0]->{name} eq 'GMAIL_RTT', "OUTPUT: Firebug's archive second entry request has a name of 'GMAIL_RTT'");
ok($firebug_ref->{log}->{entries}->[1]->{request}->{cookies}->[0]->{value} eq '270', "OUTPUT: Firebug's archive second entry request has a value of '270'");
ok($firebug_ref->{log}->{entries}->[1]->{response}->{cookies}->[0]->{name} eq 'accountrecoverylocale', "OUTPUT: Firebug's archive second entry response has a name of 'accountrecoverylocale'");
ok($firebug_ref->{log}->{entries}->[1]->{response}->{cookies}->[0]->{value} eq 'en', "OUTPUT: Firebug's archive second entry request has a value of 'en'");
ok($firebug_ref->{log}->{entries}->[1]->{response}->{cookies}->[0]->{expires} eq '2012-04-10T10:22:42.000+10:00', "OUTPUT: Firebug's archive second entry request has a expires of '2012-04-10T10:22:42.000+10:00'");
ok($firebug_ref->{log}->{entries}->[1]->{response}->{cookies}->[0]->{path} eq '/accounts/recovery', "OUTPUT: Firebug's archive second entry request has a path of '/accounts/recovery'");
ok($firebug_ref->{log}->{entries}->[1]->{response}->{cookies}->[0]->{httpOnly}, "OUTPUT: Firebug's archive second entry request has httpOnly set to true");
ok(not(exists $firebug_ref->{log}->{entries}->[1]->{response}->{cookies}->[0]->{secure}), "OUTPUT: Firebug's archive second entry request does not have a secure key at all");

t/httpwatch_cookies_n_cache.t  view on Meta::CPAN

                    ],
                    "headersSize" : 459,
                    "bodySize" : 0
                },
                "response" : {
                    "status" : 200,
                    "statusText" : "OK",
                    "httpVersion" : "HTTP/1.1",
                    "cookies" : [
                        {
                            "name" : "accountrecoverylocale",
                            "value" : "en",
                            "path" : "/accounts/recovery",
                            "domain" : "www.google.com",
                            "expires" : "2012-04-10T22:13:47.000Z",
                            "httpOnly" : true,
                            "secure" : true
                        },
                        {
                            "name" : "mainpageaccountrecoveryparamscookie",
                            "value" : "Eh1odHRwczovL21haWwuZ29vZ2xlLmNvbS9tYWlsLyDO_Jy24JP2nz4=",

t/httpwatch_cookies_n_cache.t  view on Meta::CPAN

                        {
                            "name" : "Pragma",
                            "value" : "no-cache"
                        },
                        {
                            "name" : "Server",
                            "value" : "GSE"
                        },
                        {
                            "name" : "Set-Cookie",
                            "value" : "accountrecoverylocale=en; Expires=Tue, 10-Apr-2012 22:13:47 GMT; Path=/accounts/recovery; Secure; HttpOnly"
                        },
                        {
                            "name" : "Set-Cookie",
                            "value" : "mainpageaccountrecoveryparamscookie=Eh1odHRwczovL21haWwuZ29vZ2xlLmNvbS9tYWlsLyDO_Jy24JP2nz4=; Expires=Tue, 10-Apr-2012 22:13:47 GMT; Path=/accounts/recovery; Secure; HttpOnly"
                        },
                        {
                            "name" : "Set-Cookie",
                            "value" : "S=account-recovery=tJIzeRk0MKQ; Domain=.google.com; Path=/; Secure; HttpOnly"
                        },
                        {

t/httpwatch_cookies_n_cache.t  view on Meta::CPAN

            {
                "pageref" : "page_0",
                "startedDateTime" : "2012-04-04T08:13:52.884+10:00",
                "time" : 106,
                "request" : {
                    "method" : "GET",
                    "url" : "https://www.google.com/accounts/recovery/resources/3135485014-options_bin.js",
                    "httpVersion" : "HTTP/1.1",
                    "cookies" : [
                        {
                            "name" : "accountrecoverylocale",
                            "value" : "en",
                            "path" : "/accounts/recovery",
                            "domain" : "www.google.com",
                            "expires" : "2012-04-10T22:13:47.000Z",
                            "httpOnly" : true,
                            "secure" : true
                        },
                        {
                            "name" : "mainpageaccountrecoveryparamscookie",
                            "value" : "Eh1odHRwczovL21haWwuZ29vZ2xlLmNvbS9tYWlsLyDO_Jy24JP2nz4=",

t/httpwatch_cookies_n_cache.t  view on Meta::CPAN

                        {
                            "name" : "Accept-Language",
                            "value" : "en-us,en;q=0.5"
                        },
                        {
                            "name" : "Connection",
                            "value" : "keep-alive"
                        },
                        {
                            "name" : "Cookie",
                            "value" : "accountrecoverylocale=en; mainpageaccountrecoveryparamscookie=Eh1odHRwczovL21haWwuZ29vZ2xlLmNvbS9tYWlsLyDO_Jy24JP2nz4=; PREF=ID=31245dd052940995:TM=1333416734:LM=1333416734:S=GVCghq5oz8F4iPqS; S=account-recovery...
                        },
                        {
                            "name" : "Host",
                            "value" : "www.google.com"
                        },
                        {
                            "name" : "Referer",
                            "value" : "https://www.google.com/accounts/recovery?hl=en&gaps&service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F"
                        },
                        {

t/httpwatch_cookies_n_cache.t  view on Meta::CPAN

            {
                "pageref" : "page_0",
                "startedDateTime" : "2012-04-04T08:13:52.885+10:00",
                "time" : 103,
                "request" : {
                    "method" : "GET",
                    "url" : "https://www.google.com/accounts/recovery/resources/2134501236-all-css-kennedy.css",
                    "httpVersion" : "HTTP/1.1",
                    "cookies" : [
                        {
                            "name" : "accountrecoverylocale",
                            "value" : "en",
                            "path" : "/accounts/recovery",
                            "domain" : "www.google.com",
                            "expires" : "2012-04-10T22:13:47.000Z",
                            "httpOnly" : true,
                            "secure" : true
                        },
                        {
                            "name" : "mainpageaccountrecoveryparamscookie",
                            "value" : "Eh1odHRwczovL21haWwuZ29vZ2xlLmNvbS9tYWlsLyDO_Jy24JP2nz4=",

t/httpwatch_cookies_n_cache.t  view on Meta::CPAN

                        {
                            "name" : "Accept-Language",
                            "value" : "en-us,en;q=0.5"
                        },
                        {
                            "name" : "Connection",
                            "value" : "keep-alive"
                        },
                        {
                            "name" : "Cookie",
                            "value" : "accountrecoverylocale=en; mainpageaccountrecoveryparamscookie=Eh1odHRwczovL21haWwuZ29vZ2xlLmNvbS9tYWlsLyDO_Jy24JP2nz4=; PREF=ID=31245dd052940995:TM=1333416734:LM=1333416734:S=GVCghq5oz8F4iPqS; S=account-recovery...
                        },
                        {
                            "name" : "Host",
                            "value" : "www.google.com"
                        },
                        {
                            "name" : "Referer",
                            "value" : "https://www.google.com/accounts/recovery?hl=en&gaps&service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F"
                        },
                        {



( run in 2.003 seconds using v1.01-cache-2.11-cpan-5a3173703d6 )