Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.39 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.39 KB

requestify.io

NOTE: requestify.io is currently in testing and not open to public access.

The HTML spec doesn't allow any advanced options in anchor tags, like this:

<a href="http://example.com?data" accept="application/json">

requestify.io provides a workaround with a simple proxy for the request library.

Usage

Hit requestify.io with a JSON encoded options query parameter to pass to the request() function. The result is streamed back - that's it.

Omitting the options query parameter will render this document instead.

Example

$('<a>').attr('href', 'http://requestify.io?options=' + encodeURIComponent(
	JSON.stringify({
		url: 'http://i.imgur.com/8oGNPR6.png'
	})
))

The above code produces this link: http://requestify.io/?options=%7B"url"%3A"http%3A%2F%2Fi.imgur.com%2F8oGNPR6.png"%7D

Disclaimer

I own requestify.io - I built it to solve a specific problem. I log the words "request", "readme", or "error" for each request so I have some idea of usage, but I'm not logging any of the actual request URLs or options and never will. You are obviously welcome to fork this project and host it yourself if you're more comfortable with that. If you make any improvements, pull requests are always welcome.