News for hackers. Stuff that matters.
Re:Htty is a console application for interacting with HTTP s... by dedward on Sunday October 10, 2010 @11:18AM (#1777184)
Two gripes.

1) If I hit Ctrl-D - it says "* Type qui[t] to quit."

If you know what I want to do, DO IT.. don't argue with me. Why would you write special extra code that specifically recognizes what the user wants to do and then tell them to do it another way?

2) putting a character in [X] usually means X is the character to hit. The help text is difficult to parse compared to what's normal....

Oh - I like the tool BTW - very handy otherwise.....

Re:Htty is a console application for interacting with HTTP s... by njonsson on Saturday October 16, 2010 @02:21PM (#1798471)
1) Agreed, that is a bit annoying, but I thought it less annoying than losing your entire session by quitting if you inadvertently type Ctrl-D twice to terminate input to the ‘body-set’ command.

2) The brackets are used similarly to their meaning in EBNF to denote optional elements. The expression ‘r[euse]’ means you can type ‘r’, ‘re’, ‘reu’, or ‘reus’ as aliases for the ‘reuse’ command.

Re:Htty is a console application for interacting with HTTP s... by remi on Saturday October 09, 2010 @08:36PM (#1776288)
There is also http://github.com/cloudhead/http-console which is based on node.js.
Re:Htty is a console application for interacting with HTTP s... by njonsson on Saturday October 09, 2010 @10:00PM (#1776386)
I’m a big http-console fan. It was the inspiration for my htty project.
Re:Htty is a console application for interacting with HTTP s... by vog on Sunday October 10, 2010 @10:13AM (#1777105)
From the site:

> Response codes between 500 and 599 appear flashing black on yellow to indicate a server error

Note that flashing stuff is one of the major sins of UI design, on websites as well as console applications. Even on really serious errors, flashing text is just distracting and makes the oh so important information hard to read.

I strongly recommend to remove the blinking.

Instead, you could rethink the color scheme. However, the current colors are working quite well for me, so I guess that simply removing the flashing will already do the trick.

Re:Htty is a console application for interacting with HTTP s... by njonsson on Saturday October 16, 2010 @02:26PM (#1798489)
I used blinking text not so much in the “Danger, Will Robinson!” sense but rather to suggest that the response is not idempotent. Repeating the same request could result in a different, non-error response.

User-configurable color schemes are in the works.

Re:Htty is a console application for interacting with HTTP s... by vog on Sunday October 17, 2010 @04:20PM (#1801307)
> User-configurable color schemes are in the works.

That's great, but providing sensible defaults is more important than making them configurable.

Re:Htty is a console application for interacting with HTTP s... by arst on Saturday October 09, 2010 @09:33PM (#1776354)
I use http://ditchnet.org/httpclient/ for an OS X HTTP client.
Re:Htty is a console application for interacting with HTTP s... by _delirium on Saturday October 09, 2010 @08:36PM (#1776289)
Re:Htty is a console application for interacting with HTTP s... by aaronbrethorst on Saturday October 09, 2010 @10:18PM (#1776416)
Holy crap, yes please! I literally need an interactive HTTP client like this RIGHT NOW. Thanks!

I've been dealing with a really hairy, picky quasi-RESTful API in Objective C, and it can be extremely hard to differentiate between a bug in my code and a bug in the API at times. Having an interactive console like this is going to save me a huge amount of time and hassle. Thank you so much for writing this!

Re:Htty is a console application for interacting with HTTP s... by stcredzero on Saturday October 09, 2010 @11:02PM (#1776466)
What about telnet? (I did not downvote you, BTW.)
Re:Htty is a console application for interacting with HTTP s... by aaronbrethorst on Saturday October 09, 2010 @11:05PM (#1776468)
general ease of use, including highlighting, simple management of GET/POST/PUT/DELETE, cookies, etc.
Re:Htty is a console application for interacting with HTTP s... by njonsson on Sunday October 10, 2010 @01:25AM (#1776603)
Glad you like it. Please let me know if htty ends up causing you pain in the course of your API work. Either tweet me @get_htty or @njonsson or enter a bug or wish-list item at http://github.com/htty/htty/issues.
Re:Htty is a console application for interacting with HTTP s... by points on Sunday October 10, 2010 @05:21AM (#1776829)
also curl is pretty good for doing anything HTTP related.
Re:Htty is a console application for interacting with HTTP s... by dedward on Sunday October 10, 2010 @11:14AM (#1777171)
Try a debugging proxy like fiddler or paros... infinitely handy as well, and more general purpose.
Re:Htty is a console application for interacting with HTTP s... by wccrawford on Saturday October 09, 2010 @08:27PM (#1776278)
I haven't tried it yet, but it looks like it could make some things easier. I look forward to using it.
Re:Htty is a console application for interacting with HTTP s... by NHQ on Saturday October 09, 2010 @10:09PM (#1776400)
is this something one would use to play with API requests?
Re:Htty is a console application for interacting with HTTP s... by michaelbuckbee on Sunday October 10, 2010 @12:12AM (#1776539)
Yes, it would be very useful for that as well as troubleshooting server responses (to test for things like caching, bugs, stuff like that).
Re:Htty is a console application for interacting with HTTP s... by ajx on Saturday October 09, 2010 @10:11PM (#1776404)
sounds like a solution looking for a problem.
Re:Htty is a console application for interacting with HTTP s... by timjulien on Saturday October 09, 2010 @10:59PM (#1776463)
um yeah - what's wrong with plan ole http? curl has never come up short.
Re:Htty is a console application for interacting with HTTP s... by njonsson on Sunday October 10, 2010 @01:31AM (#1776607)
The aim of the project was to make htty an incremental advance over curl by layering aspects of a browser UX on top of it. What you get with htty that curl doesn't give you is primarily a session, and consequently a history. The other features are icing on the cake.

In the near future, the difference will be more striking. The ability to parse and build requests on various media types will make htty even better at the tasks of both API exploration and HTML screen-scraping.

Re:Htty is a console application for interacting with HTTP s... by timjulien on Sunday October 10, 2010 @03:29PM (#1777744)
definitely a cool project. Cool to experiment with UX on top of http. I guess the thing that rubbed me the wrong way initially is I really like seeing request / response. As a developer I learn alot from watching those; and anytime I have bugs in my http it's typically a header problem, so I like seeing those front and center.