httpdiff

Perform the same request against two HTTP servers and diff the results

  • Owner: jgrahamc/httpdiff
  • Platform:
  • License:: GNU General Public License v2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

httpdiff

Perform the same request against two HTTP servers and diff the results. For
best results use in a terminal that supports ANSI escape sequences.

Installation

go get github.com/jgrahamc/httpdiff
go install github.com/jgrahamc/httpdiff

Usage

Simple usage is to give it two URLs to fetch and it will diff the results. If
the bodies are different they are saved to temporary files.

httpdiff http://www.google.co.uk http://www.google.com/

It's also possible to set the Host header to something other than what's in
the URIs. This is sometimes useful when testing a temporary set up or when
moving servers.

httpdiff -host example.com http://example.old.com/ http://example.new.com

Specific headers can be ignored with the -ignore option

httpdiff -ignore Set-Cookie,Date http://x.com http://y.com

The default HTTP method is GET but that can be changed

httpdiff -method HEAD http://example.com http://example2.com

Output example on Hacker News showing that Date changes each time

HN

Output example on Google showing difference between HTTP and HTTPS

HN

Main metrics

Overview
Name With Ownerjgrahamc/httpdiff
Primary LanguageGo
Program languageMakefile (Language Count: 2)
Platform
License:GNU General Public License v2.0
所有者活动
Created At2015-03-24 15:11:17
Pushed At2021-08-22 18:02:48
Last Commit At2016-10-14 13:46:58
Release Count1
Last Release Namev1.0.0 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count2k
Watchers Count41
Fork Count69
Commits Count37
Has Issues Enabled
Issues Count8
Issue Open Count2
Pull Requests Count10
Pull Requests Open Count1
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private