Is serverIPAddress property supported?

145 views
Skip to first unread message

Yuriy Netrebin

unread,
Mar 6, 2017, 10:06:24 AM3/6/17
to HTTP Archive Specification

Hello,

I'm trying to get serverIPAddress property with HAR-export-trigger (harexporttrigger-0.5.0-beta.10.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

Yuriy Netrebin

unread,
Mar 6, 2017, 10:06:24 AM3/6/17
to HTTP Archive Specification

Hello,


I'm trying to get serverIPAddress property with HAR-export-trigger (harexporttrigger-0.5.0-beta.10.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 (47.0.1), serverIPAddress property is correctly exported to HAR file.


Thanks

Jan Odvarko

unread,
Mar 7, 2017, 10:53:52 AM3/7/17
to http-archive-...@googlegroups.com
Please file a new issue in the official HARExporterTrigger list so, it isn’t forgotten.

Honza




--
--
You received this message because you are subscribed to the Google
Groups "HTTP Archive Specification" group.
To post to this group, send email to
http-archive-...@googlegroups.com
To unsubscribe from this group, send email to
http-archive-specif...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/http-archive-specification

---
You received this message because you are subscribed to the Google Groups "HTTP Archive Specification" group.
To unsubscribe from this group and stop receiving emails from it, send an email to http-archive-specif...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oscar Hernandez

unread,
Sep 14, 2017, 2:57:15 PM9/14/17
to HTTP Archive Specification
I have the same problem:
Using http://mockbin.com when using Bin Access Log

GET / bin / 3c149e20-bc9c-4c68-8614-048e6023a108 / log

the result can not be mapped to a HarLog. It gives me the following error:

atal error: Unrecognized field 'clientIPAddress' in page element
 
at [Source: org.apache.http.client.entity.LazyDecompressingInputStream@7b49cea0; line: 11, column: 29]
org.codehaus.jackson.JsonParseException: Unrecognized field 'clientIPAddress' in page element
 
at [Source: org.apache.http.client.entity.LazyDecompressingInputStream@7b49cea0; line: 11, column: 29]
at edu.umass.cs.benchlab.har.HarEntry. <init> (HarEntry.java:200)
at edu.umass.cs.benchlab.har.HarEntries. <init> (HarEntries.java:86)
at edu.umass.cs.benchlab.har.HarLog. <init> (HarLog.java:131)
at edu.umass.cs.benchlab.har.tools.HarFileReader.readHarFile (HarFileReader.java:67)
at DownloadFileExe.main (DownloadFileExe.java:148)


My code is as follows:


HttpGet method = new HttpGet ("http://mockbin.com/bin/3c149e20-bc9c-4c68-8614-048e6023a108/log");
method.addHeader ("accept", "application / json");


HttpResponse response = client.execute (method);
int statusCode = response.getStatusLine (). getStatusCode ();

InputStream body = response.getEntity (). GetContent ();

JsonParser jp = new JsonFactory (). CreateJsonParser (body);
HarFileReader r = new HarFileReader ();

List <HarWarning> warnings = new ArrayList <HarWarning> ();
HarLog log = r.readHarFile (jp, warnings);
Reply all
Reply to author
Forward
0 new messages