Git Product home page Git Product logo

electron-har's People

Contributors

bmcminn avatar lexich avatar shyiko avatar shyykoserhiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

electron-har's Issues

An attempt to generate HAR resulted in error code -3.

On OS X, latest El Capitan, using zsh and the electron-har installed via

npm install -g electron-har

When I first tried:

electron-har http://cultofmac.com

It worked, and I got the HAR output to stdout.

Second time + all subsequent attempts, I’m getting:

An attempt to generate HAR resulted in error code -3.`

According to https://src.chromium.org/svn/trunk/src/net/base/net_error_list.h:

// An operation was aborted (due to user action).
NET_ERROR(ABORTED, -3)

Any ideas?

Nightmare js

Hello,
Would this be possible to use with Nightmarejs?

Cannot find module electron-har

After running the npm install with -g flag, getting an error when trying the example snippet programmatically as well as from cmd terminal:

Uncaught Error: Cannot find module 'electron-har'
at Module._resolveFilename (module.js:543:15)
at Function.Module._resolveFilename (/Users/[USER]/Documents/Development/ElectronWebSave/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:473:25)
at Module.require (module.js:586:17)
at require (internal/module.js:11:18)
at file:///Users/[USER]/Documents/Development/ElectronWebSave/browser.js:8:21

Electron security issues

Given:

How much of a security risk is running electron-har and what steps could be taken to minimise risk of arbitrary code execution?

At the very least, we should link to the warning(s) on the Electron site, above.

Add support for cookies

Add support for -b, --cookie <name=data>.

Pass the data to the HTTP server as a cookie. It is supposedly the data previously received from the server in a "Set-Cookie:" line. The data should be in the format "NAME1=VALUE1; NAME2=VALUE2".

Thoughts on leveraging network throttling and user agents?

One of the primary use cases I have around this project is being able to throttle the network and applying custom user agents to simulate certain desktop and mobile environments. Curious if you've tackled this before or if you think this would be a decent addition?

I'm planning to dig into Electron's docs to see if this is feasible and will be tinkering with a possible integration soon.

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.