https://github.com/brcontainer/simple-http-proxy-csharp
Simple http proxy asp.net (csharp)
https://github.com/brcontainer/simple-http-proxy-csharp
Last synced: 11 months ago
JSON representation
Simple http proxy asp.net (csharp)
- Host: GitHub
- URL: https://github.com/brcontainer/simple-http-proxy-csharp
- Owner: brcontainer
- License: mit
- Created: 2013-08-29T02:28:59.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-03-24T21:51:57.000Z (over 12 years ago)
- Last Synced: 2025-03-13T01:41:13.307Z (over 1 year ago)
- Language: ASP
- Size: 147 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
simple http proxy csharp
======================
Simple http proxy asp.net (csharp)
### Follow ###
I ask you to follow me or "star" my repository to track updates
### Usage ###
Example
Load image from google.com
`http://your-domain/folder/html-proxy-csharp.ashx?url=http://www.google.com/press/zeitgeist2001/google_logo.gif`
Load image from facebook.com
`http://your-domain/folder/html-proxy-csharp.ashx?url=https://www.facebook.com/images/fb_icon_325x325.png`
Example with **[Fabric.js](https://github.com/kangax/fabric.js)**:
```html
fabric.js proxy
//<![CDATA[
(function() {
var canvas = new fabric.Canvas('myCanvasId');
fabric.Image.fromURL('html-proxy-csharp.ashx?url=http://fabricjs.com/assets/pug_small.jpg', function(img) {
img.scale(0.5).set({
left: 150,
top: 190,
angle: -15,
clipTo: function (ctx) {
ctx.arc(0, 0, 300, 0, Math.PI * 2, true);
}
});
canvas.add(img).setActiveObject(img);
});
function fireSnapShot(){
window.open(document.getElementById('myCanvasId').toDataURL("image/png"));
}
document.getElementById('fire').onclick = fireSnapShot;
})();
//]]>
```