# httpdiff **Repository Path**: mirrors/httpdiff ## Basic Information - **Project Name**: httpdiff - **Description**: httpdiff 用来执行相同的请求到两个不同的 HTTP 服务器,并对返回的结果进行比较 - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/httpdiff - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2020-12-24 - **Last Updated**: 2025-08-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](doc/example.png "Checking two GETs of HN") # Output example on Google showing difference between HTTP and HTTPS ![HN](doc/example2.png "HTTP vs. HTTPS")