6 ms·
A Scripting Language for HTTP
- swalsh 11y agoOne problem i've had using python to script loading pages, is sometimes other pages you need things from load in frames based on a javascript load functions. PhantomJS solves this by emulating the browser... of course then you have to do everything in javascript.
- nkozyra 11y agoSure, but the JS you need is incredibly minimal and you can easily transport Phantom's output to whatever other application you can dream of. I've seen a lot of headless apps outside of Phantom, but none of them work well enough for me to ditch the system above (Phantom :: Message Queue :: Other App).
- _druu 11y agohttps://github.com/jkbrzt/httpie https://github.com/jkbrzt/httpie
- baldfat 11y agoCreating this Language in Racket would be the best option IMHO. Racket was made for specifically this reason. http://docs.racket-lang.org/guide/languages.html http://docs.racket-lang.org/guide/languages.html
- jimjag 11y agoYet another Github project that could be useful, except that there is no explicit license. Which means it's under traditional copyright.
- baldfat 11y agohttps://help.github.com/articles/open-source-licensing/ https://help.github.com/articles/open-source-licensing/
- carbocation 11y agoThat leaves me more curious now. It contains the following: > "Even if this is what you intend, if you publish your source code in a public repository on GitHub, you have accepted the Terms of Service which do allow other GitHub users some rights. Specifically, you allow others to view and fork your repository." I wonder what it means, from the standpoint of using or modifying code within the copyright framework, to have this right to "fork your repository?"
- MatthewWilkes 11y agoIt doesn't grant any right to use or modify the code, just to re-host it for viewing. Say someone puts up a repository they don't intend to, then deletes it. This right ensures they can't demand you delete it if you hit the fork button in time.
- wyldfire 11y ago> I wonder what it means, from the standpoint of using or modifying code within the copyright framework, to have this right to "fork your repository?" It's a conflict between the hosting T&S and the copyright of a derivative work. Just because Github says you can, doesn't mean you can.
- rmc 11y agoNot quite. Since it's on GitHub, the terms and conditions for uploading, means that github users have the permission to view and fork the repository. https://help.github.com/articles/open-source-licensing/ https://help.github.com/articles/open-source-licensing/
- jimjag 11y agoWhich really means nothing. It certainly is not an Open Source or Free Software license. View and fork does not mean use. Or distribute, etc...
- WormyMcSquirmy 11y agoSo raise a pull request to add one.
- wyldfire 11y agohttps://github.com/Max00355/HTTPLang/pull/11 https://github.com/Max00355/HTTPLang/pull/11
- thephyber 11y agoNo longer an issue. MIT License. https://github.com/Max00355/HTTPLang/blob/master/LICENSE.md https://github.com/Max00355/HTTPLang/blob/master/LICENSE.md
- andreineculau 11y agoKATT does a few more things (since it's goal is testing HTTP), but I've used it also for scripting purposes. The syntax is 99% plain HTTP syntax. https://github.com/for-GET/katt https://github.com/for-GET/katt
- ufo 11y agoI'm curious why this was made into a scripting language instead of into a regular Python library. It it were regular Python you would get tons of features for free like loops, functions, if statements, etc.
- deleted 11y ago[deleted]
- leftnode 11y agoBecause then you'd just have Requests and normal Python which it sounds like the author wanted to avoid.
- JimDabell 11y agoPrevious discussion on Hacker News: https://news.ycombinator.com/item?id=9598443 https://news.ycombinator.com/item?id=9598443
- max0563 11y agoAuthor here, I am currently looking for someone who would be interested in improving and maintaining this project. I have been trying but I don't really have time due to work and other things happening in my life. I would like to see HTTPLang grow,and it seems like there is some interest in the community. If anyone is interested send me an email at max00355@gmail.com
- bmn_ 11y agoThis is reinventing https://metacpan.org/release/webchat https://metacpan.org/release/webchat You should just give up.