Includes : HttpRequest

By w35l3y Last update Feb 1, 2012 — Installed 44,126 times.

yay

in
Subscribe to yay 2 posts, 2 voices



Avindra V.G. Scriptwright
FirefoxWindows

Thanks for having this thing:

	if (this.options.method == "POST")
					{
						this.options.headers['Content-Type'] = 'application/x-www-form-urlencoded';

It's so damn common in "POST" request (I wager 99% of the time). Makes you wonder why the hell lazy GM writers won't implement it.

 
w35l3y Script's Author
FirefoxWindows

yeah, I don't understand either.

but I only guarantee this when typeof content == "object", so I can iterate the object properties and generate that content-type.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel