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

Is serverIPAddress property supported? #28

Open
svagi opened this issue May 18, 2016 · 1 comment
Open

Is serverIPAddress property supported? #28

svagi opened this issue May 18, 2016 · 1 comment

Comments

@svagi
Copy link

svagi commented May 18, 2016

Hello,

I'm trying to get serverIPAddress property with HAR-export-trigger (harexporttrigger-0.5.0-beta.9.xpi) instead of triggering DNS resolutions by myself. Problem is that serverIPAddress property is not defined for every entry, but if try to manually export HAR file from Firefox (46.0.1), serverIPAddress property is correctly exported to HAR file.

Am I missing something?
Thanks

@brewt
Copy link

brewt commented May 18, 2016

It's a bug in Firefox. Here's a patch to Firefox's omni.jar:

diff -uNr omni.orig/chrome/devtools/modules/devtools/client/netmonitor/har/har-collector.js omni/chrome/devtools/modules/devtools/client/netmonitor/har/har-collector.js
--- omni.orig/chrome/devtools/modules/devtools/client/netmonitor/har/har-collector.js>--2010-01-01 00:00:00.000000000 -0800
+++ omni/chrome/devtools/modules/devtools/client/netmonitor/har/har-collector.js>-------2016-04-12 18:50:15.699346640 -0700
@@ -242,8 +242,11 @@
         break;
       case "responseStart":
         file.httpVersion = packet.response.httpVersion;
+        file.remoteAddress = packet.response.remoteAddress;
+        file.remotePort = packet.response.remotePort;
         file.status = packet.response.status;
         file.statusText = packet.response.statusText;
+        file.headersSize = packet.response.headersSize;
         break;
       case "responseContent":
         file.contentSize = packet.contentSize;

Just haven't gotten around to filing a bug about it.

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

2 participants