News for hackers. Stuff that matters.
Re:A Scripting Language for HTTP by andreineculau on Monday August 17, 2015 @09:07AM (#10072673)
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

Re:A Scripting Language for HTTP by jimjag on Monday August 17, 2015 @08:58AM (#10072626)
Yet another Github project that could be useful, except that there is no explicit license. Which means it's under traditional copyright.
Re:A Scripting Language for HTTP by rmc on Monday August 17, 2015 @10:50AM (#10073346)
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/
Re:A Scripting Language for HTTP by jimjag on Monday August 17, 2015 @02:15PM (#10074995)
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...
Re:A Scripting Language for HTTP by thephyber on Monday August 17, 2015 @09:07PM (#10077066)
Re:A Scripting Language for HTTP by baldfat on Monday August 17, 2015 @09:45AM (#10072884)
Re:A Scripting Language for HTTP by carbocation on Monday August 17, 2015 @10:05AM (#10073013)
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?"

Re:A Scripting Language for HTTP by MatthewWilkes on Monday August 17, 2015 @10:26AM (#10073162)
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.
Re:A Scripting Language for HTTP by wyldfire on Monday August 17, 2015 @11:02AM (#10073438)
> 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.

Re:A Scripting Language for HTTP by WormyMcSquirmy on Monday August 17, 2015 @11:21AM (#10073570)
So raise a pull request to add one.
Re:A Scripting Language for HTTP by wyldfire on Monday August 17, 2015 @12:31PM (#10074173)
Re:A Scripting Language for HTTP by _druu on Monday August 17, 2015 @08:32AM (#10072540)
Re:A Scripting Language for HTTP by baldfat on Monday August 17, 2015 @08:49AM (#10072599)
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

Re:A Scripting Language for HTTP by max0563 on Monday August 17, 2015 @02:45PM (#10075211)
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 [email protected]
Re:A Scripting Language for HTTP by bmn_ on Tuesday August 18, 2015 @12:39PM (#10080213)
This is reinventing https://metacpan.org/release/webchat

You should just give up.

Re:A Scripting Language for HTTP by ufo on Monday August 17, 2015 @09:08AM (#10072675)
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.
Re:A Scripting Language for HTTP by leftnode on Monday August 17, 2015 @09:57AM (#10072961)
Because then you'd just have Requests and normal Python which it sounds like the author wanted to avoid.
Re:A Scripting Language for HTTP by JimDabell on Monday August 17, 2015 @10:29AM (#10073172)
Previous discussion on Hacker News:

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

Re:A Scripting Language for HTTP by swalsh on Monday August 17, 2015 @08:16AM (#10072484)
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.
Re:A Scripting Language for HTTP by nkozyra on Monday August 17, 2015 @08:46AM (#10072584)
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).