Hacker News new | ask | show | jobs
A Scripting Language for HTTP (github.com)
75 points by nimitkalra 3955 days ago
8 comments

KATT 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

Yet another Github project that could be useful, except that there is no explicit license. Which means it's under traditional copyright.
Not 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/
Which really means nothing. It certainly is not an Open Source or Free Software license. View and fork does not mean use. Or distribute, etc...
That 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?"

It 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.
> 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.

So raise a pull request to add one.
Creating 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

Author 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
This is reinventing https://metacpan.org/release/webchat

You should just give up.

I'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.
Because then you'd just have Requests and normal Python which it sounds like the author wanted to avoid.
Previous discussion on Hacker News:

https://news.ycombinator.com/item?id=9598443

One 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.
Sure, 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).