GithubHelp home page GithubHelp logo

mozilla / gzipserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vdjeric/gzipserver

9.0 32.0 8.0 17 KB

Web server that receives gzip'd POST requests and saves them uncompressed locally

License: GNU General Public License v2.0

Python 100.00%

gzipserver's Introduction

gzipServer

Web server that receives gzip'd POST requests and saves them uncompressed locally

To force Firefox to send a Telemetry payload to this server:

  1. Start the server: ./gzipServer.py (you may need to install simplejson Python module)
  2. In about:config, change the preference "toolkit.telemetry.server" to "http://localhost"
  3. Restart Firefox to have Telemetry pick up the above pref change
  4. Open about:telemetry (it has some Telemetry namespaces nicely set up) and open the DevTools console
  5. Paste the following into the console:
    Cu.import("resource://gre/modules/TelemetrySession.jsm");
    TelemetrySession.testPing();
  6. The script will save the request it receives to report1.json in the script's working directory

Note: The procedure above will create a "test ping", which is equivalent to a regular Telemetry "saved-session" ping.

Alternatives:

  1. If you just need to see the Telemetry measurements from the current session, you can see them directly on the about:telemetry page in Firefox.
  2. If you need to see what the full ping looks like, but you don't need to send it to a server, simply exit Firefox and restart. In about:telemetry select the last "main" ping from the archived ping data. You can switch to the raw ping data to see the full raw contents.
  3. You can also get the full ping from the DevTools console by opening the about:telemetry page and running the commands:
    Cu.import("resource://gre/modules/TelemetrySession.jsm");
    ping = TelemetrySession.getPayload()

gzipserver's People

Contributors

chutten avatar dexterp37 avatar georgf avatar mreid-moz avatar simon-friedberger avatar vdjeric avatar wlach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

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.