Includes : HttpRequest

By w35l3y Last update May 26, 2013 — Installed 151,076 times.

Script Summary: HttpRequest Function



Version: 2.0.5.1

Copyright: 2011+, w35l3y (http://gm.wesley.eti.br)

License: GNU GPL

PayPal - The safer, easier way to pay online!

Implementing

// @require        http://userscripts.org/scripts/source/56489.user.js

Examples

HttpRequest.open({
	"method":"get",
	"url":"www.google.com",
	"onsuccess":function(params)	// don't confuse "onsuccess" and "onload"! "onload" doesn't exist here
	{
		alert(params.response.text); // raw, text, xml, json
	}
}).send();