Comments (6)
Thanks for the kind words.
As always pull requests are greatfully recieved.
Especially with additional documentation for realworld use cases :)
from harmon.
Yes I'll send over the two lines tomorrow.
Key info:
- remove accept header before making request to remote site
- set host header to the host of the site you are proxying to.
These things fixed my issues.
I wasnt able to use all of Harmon because I could not append HTML to an
element using trumpet :(
But I still used your monkeypatching code and conditional execution. Very
helpful.
I'll credit you when I publish the module, probably also tomorrow.
Cheers!
David
On Feb 11, 2015 2:33 PM, "Anton Whalley" [email protected] wrote:
Thanks for the kind words.
As always pull requests are greatfully recieved.
Especially with additional documentation for realworld use cases :)—
Reply to this email directly or view it on GitHub
#19 (comment).
from harmon.
For those reading this later, you can see what I came up with over here: https://github.com/DTrejo/neo-proxy
from harmon.
Hi @DTrejo Gzip support and a sample has been added to the repo
https://github.com/No9/harmon/blob/master/examples/gzipped.js
from harmon.
Thanks man!
Also, check it out, I gave you credit :)
https://github.com/DTrejo/neo-proxy#credits
Have a great day man and thanks for saving me so much time & not having to write this myself :)
Best,
D
from harmon.
from harmon.
Related Issues (20)
- how to use harmon on specify url HOT 1
- prepareRequestSelectors HOT 1
- Dealing with bad html HOT 9
- How to use in non-html? HOT 2
- Connection hangs for very generic selectors HOT 6
- doge.js is redirecting to original site with no injection HOT 7
- Request hangs
- gzip content length issue HOT 2
- Proxy a m3u8 file HOT 1
- Variable Targets
- Use with browsersync HOT 2
- js/css filter with query params HOT 2
- Doesn't work nowadays? Examples and tests fail HOT 9
- Replacing the value inside an element HOT 3
- write() getting called before writeHead() on gzip'd content causes failures HOT 2
- help w/ hello world, they don't require harmon? HOT 1
- got error on zlib HOT 1
- No selector callbacks being invoked for certain sites HOT 2
- How to modify a file from a response
- Content Length not deleted on HTML rewrite if HTML Only HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harmon.