Git Product home page Git Product logo

Comments (11)

BenPatterson2 avatar BenPatterson2 commented on September 24, 2024

This looks related to lightbody/browsermob-proxy#626

from bmp-client.

BenPatterson2 avatar BenPatterson2 commented on September 24, 2024

Try adding --ignore-certificate-errors to the chromeOptions

from bmp-client.

T-Developer1 avatar T-Developer1 commented on September 24, 2024

I added it, but my response content is still empty

from bmp-client.

BenPatterson2 avatar BenPatterson2 commented on September 24, 2024

hmm, does it occur when you navigate to a non https location?

from bmp-client.

T-Developer1 avatar T-Developer1 commented on September 24, 2024

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.

BenPatterson2 avatar BenPatterson2 commented on September 24, 2024

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.

T-Developer1 avatar T-Developer1 commented on September 24, 2024

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.

T-Developer1 avatar T-Developer1 commented on September 24, 2024

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.

T-Developer1 avatar T-Developer1 commented on September 24, 2024

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.

BenPatterson2 avatar BenPatterson2 commented on September 24, 2024

This still sounds like it is more related to browsermob than this library.

from bmp-client.

rarunp04 avatar rarunp04 commented on September 24, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.