Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid har file generated for www.adobe.com #64

Open
adamgoucher opened this issue Jul 11, 2012 · 0 comments
Open

invalid har file generated for www.adobe.com #64

adamgoucher opened this issue Jul 11, 2012 · 0 comments

Comments

@adamgoucher
Copy link

If you produce a har file for http://www.adobe.com, the resulting file is invalid. Specifically, the entry for for http://www.adobe.com/favicon.ico. For instance, it is missing the mandatory 'timings' section.

Files need to be valid even if the response was something unexpected.

timings [object] - Detailed timing info about request/response round trip.

Here is the entry as dumped from PHP.

  [65]=>
  array(6) {
    ["time"]=>
    int(0)
    ["request"]=>
    array(8) {
      ["method"]=>
      string(3) "GET"
      ["headers"]=>
      array(0) {
      }
      ["queryString"]=>
      array(0) {
      }
      ["cookies"]=>
      array(0) {
      }
      ["bodySize"]=>
      int(0)
      ["url"]=>
      string(32) "http://www.adobe.com/favicon.ico"
      ["httpVersion"]=>
      string(4) "HTTP"
      ["headersSize"]=>
      int(0)
    }
    ["response"]=>
    array(9) {
      ["content"]=>
      array(2) {
        ["size"]=>
        int(0)
        ["mimeType"]=>
        string(0) ""
      }
      ["headers"]=>
      array(0) {
      }
      ["status"]=>
      int(-999)
      ["cookies"]=>
      array(0) {
      }
      ["bodySize"]=>
      int(0)
      ["httpVersion"]=>
      string(4) "HTTP"
      ["headersSize"]=>
      int(0)
      ["statusText"]=>
      string(11) "NO RESPONSE"
      ["redirectURL"]=>
      string(0) ""
    }
    ["startedDateTime"]=>
    string(28) "2012-07-11T14:16:04.928+0000"
    ["pageref"]=>
    string(15) "adobe home page"
    ["cache"]=>
    array(0) {
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant