httpdiff

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

  • 所有者: jgrahamc/httpdiff
  • 平台:
  • 许可证: GNU General Public License v2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者jgrahamc/httpdiff
主编程语言Go
编程语言Makefile (语言数: 2)
平台
许可证GNU General Public License v2.0
所有者活动
创建于2015-03-24 15:11:17
推送于2021-08-22 18:02:48
最后一次提交2016-10-14 13:46:58
发布数1
最新版本名称v1.0.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数2k
关注者数41
派生数69
提交数37
已启用问题?
问题数8
打开的问题数2
拉请求数10
打开的拉请求数1
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?