jgrahamc / httpdiff Goto Github PK
View Code? Open in Web Editor NEWPerform the same request against two HTTP servers and diff the results
License: GNU General Public License v2.0
Perform the same request against two HTTP servers and diff the results
License: GNU General Public License v2.0
I'd like to be be able to supply custom HTTP headers to both requests. I think something like the following would work:
$ httpdiff -header "X-Example: My value" -header "Host: example.com" https://domain.com https://domain.net
This would also allow you to consolidate some of the other methods like -host
as it would be combined into the one option.
While doing some CDN tests, I accidentally noticed that the client doesn't report status code or response differences for redirects:
$ httpdiff http://httpbin.org/status/301 http://httpbin.org/status/307
Doing GET:
http://httpbin.org/status/301
http://httpbin.org/status/307
This is presumably due to some magic in the Go http client for redirects since any other status code produces the expected output.
(I know this is a bug report, but I still would like to thank you for a great tool first and foremost!)
The choice of colors does not make it easy to distinguish them properly and efficiently.
A good bright yellow is not used though it is perfect on black and better than orange which can be confused with some shades of green.
Please consider clear contrast colors compared to perceived "prettiness".
Also structural queues can be better to spot quickly compared to colors, because of color vision deficiency (for example red green vision deficiency, not blindness as it's called sometimes) but also due to different personal usage / training.
This could be simple symbols such as + - > or short words, one letter words etc. Long wordy descriptions are no substitute because they cannot be recognized on the spot, but need a more careful look.
HTTP servers are capricious or sometimes give wildly different results depending on the parameters.
That might be an idea for a feature.
Hello,
It’d be very helpful if you could tag a release so we know the code is stable and can be used. I work on Homebrew and we provide a way to install httpdiff
but we rely on the git HEAD, so we can’t provide checksums and can’t ensure users will always get the same code depending on the time they install it, making it harder for us to debug issues.
Thanks!
Drop the src directory and the makefile. They're not useful and just make the code more difficult to build (and are not idiomatic go). Once you do that, go get github.com/jgrahamc/httpdiff
will Just Work™.
This tool is installable via brew. In order to make maintenance easier and support go 1.17 could the maintainers please add go module support?
You can use http://golang.org/pkg/bytes/#Equal instead of sha256.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.