goproxy-jquery-version

command
v1.2.0-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2016 License: BSD-3-Clause, Apache-2.0 Imports: 5 Imported by: 0

README

Content Analysis

goproxy-jquery-version starts an HTTP proxy on :8080. It checks HTML responses, looks for scripts referencing jQuery library and emits warnings if different versions of the library are being used for a given host.

Start it in one shell:

goproxy-jquery-version

Fetch goproxy homepage in another:

http_proxy=http://127.0.0.1:8080 wget -O - \
	http://ripper234.com/p/introducing-goproxy-light-http-proxy/

Goproxy homepage uses jQuery and a mix of plugins. First the proxy reports the first use of jQuery it detects for the domain. Then, because the regular expression matching the jQuery sources is imprecise, it reports a mismatch with a plugin reference:

2015/04/11 11:23:02 [001] WARN: ripper234.com uses //ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
2015/04/11 11:23:02 [001] WARN: In http://ripper234.com/p/introducing-goproxy-light-http-proxy/, \
  Contradicting jqueries //ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js \
  http://ripper234.wpengine.netdna-cdn.com/wp-content/plugins/wp-ajax-edit-comments/js/jquery.colorbox.min.js?ver=5.0.36

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL