Code Monkey home page Code Monkey logo

curl-trace-parser's Issues

SSL data in curl tracefile not ignored

version 0.0.8

When a curl trace file is generated going against an endpoint using HTTPS, the resulting "Send SSL data", "Recv SSL data" chunks in the tracefile cause 'noisy' output for both the --raw and --blueprint options.
Removing these chunks from the tracefile eliminates the noisy output.
Perhaps the first for loop in the parse() function (in parser.js) could filter out these chunks?

But, on a more positive node, nice tool - as the description states, "If you want a human readable form then this parser is what you need". The blueprint output is a quite nice feature.

Split CLI off into its own project?

I noticed that the parser itself is actually completely free of dependencies, they're only used in the CLI. What do you think of splitting the CLI into its own repository (maybe curl-trace-parser-cli)? It would reduce the update churn due to the new fixed versioning.

LICENSE?

You need to include license text for MIT license

Add Newline after HTTP body

Request and response are pressed on one line if POST body is present, missing newline after data is breaking terminal:

kolotoc:curl-trace-parser netmilk$ curl --trace - --header "Content-Type: application/json" \
      --silent --output /dev/null --request POST \
      --data-binary "{ \"product\":\"1AB23ORM\", \"quantity\": 2 }" \
      "http://curltraceparser.apiary.io/shopping-cart" | \
      curl-trace-parser
POST /shopping-cart HTTP/1.1
User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
Host: curltraceparser.apiary.io
Accept: */*
Content-Type: application/json
Content-Length: 39

{ "product":"1AB23ORM", "quantity": 2 }HTTP/1.1 201 Created
Content-Type: application/json
Date: Sun, 21 Jul 2013 14:32:46 GMT
X-Apiary-Ratelimit-Limit: 120
X-Apiary-Ratelimit-Remaining: 118
Content-Length: 50
Connection: keep-alive

{ "status": "created", "url": "/shopping-cart/2" }kolotoc:curl-trace-parser netmilk$

Simple example?

Do you really need a POST example with POST data and a custom HTTP header in order to demonstrate how to run curl and capture the traffic? I would suggest a simple GET without parameters or headers would suffice.

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.