Comments (11)
This looks related to lightbody/browsermob-proxy#626
from bmp-client.
Try adding --ignore-certificate-errors
to the chromeOptions
from bmp-client.
I added it, but my response content is still empty
from bmp-client.
hmm, does it occur when you navigate to a non https location?
from bmp-client.
yes i tried it with an normal get request
{
"pageref": "Page 0",
"startedDateTime": "2019-03-05T01:48:14.876+01:00",
"request": {
"method": "GET",
"url": "http://www.play-hookey.com/images/dk_blue.gif",
"httpVersion": "HTTP/1.1",
"cookies": [],
"headers": [],
"queryString": [],
"headersSize": 431,
"bodySize": 0,
"comment": ""
},
"response": {
"status": 200,
"statusText": "OK",
"httpVersion": "HTTP/1.1",
"cookies": [],
"headers": [],
"content": {
"size": 0,
"mimeType": "image/gif",
"comment": ""
},
"redirectURL": "",
"headersSize": 270,
"bodySize": 60,
"comment": ""
},
"cache": {},
"timings": {
"comment": "",
"wait": 114,
"blocked": -1,
"send": 0,
"dns": -1,
"connect": -1,
"receive": 0,
"ssl": -1
},
"serverIPAddress": "173.13.214.106",
"comment": "",
"time": 114
}
from bmp-client.
Odd question, are you including quotes on the true
values ?
await defaultProxy.createHar({
captureContent:'true',
captureBinaryContent: 'true'
});
or
await defaultProxy.createHar({
captureContent:true,
captureBinaryContent: true
});
Can you try without quotes if you are?
from bmp-client.
when i try the request with postman i get the same problem
i tried a put request on localhost:8080/proxy/8102/har
with
{"captureHeaders": "true", "captureContent": "true", "captureBinaryContent": "true" }
as raw application/json
is there maybe something wrong with my browsermob itself?
from bmp-client.
Odd question, are you including quotes on the
true
values ?await defaultProxy.createHar({ captureContent:'true', captureBinaryContent: 'true' });
or
await defaultProxy.createHar({ captureContent:true, captureBinaryContent: true });
Can you try without quotes if you are?
I tried it with and without the quotes, but both gave me the same result.
I got no error or something when i change them.
from bmp-client.
i've started the browsermob now with "sh browsermob-proxy --use-littleproxy"
Now i can see the size of the content, but i still cant see the actual content
{ "status": 200, "statusText": "OK", "httpVersion": "HTTP/1.1", "cookies": [], "headers": [], "content": { "size": 22850, "mimeType": "application/json;charset=UTF-8", "comment": "" }, "redirectURL": "", "headersSize": 895, "bodySize": 22850, "comment": "" }
from bmp-client.
This still sounds like it is more related to browsermob than this library.
from bmp-client.
@tomStegmaier you just need to pass the boolean value , be default it is false hence the request payload and response will not be captured
await defaultProxy.createHar(true,true,true);
from bmp-client.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmp-client.