curl

0 views
Skip to first unread message

Ryan Bigg

unread,
Feb 6, 2008, 7:19:59 AM2/6/08
to SwitchPipe
First of all, this was such a surprise to me that, instead of going to
bed as I planned to do 3 minutes ago, I got involved with SwitchPipe.

When I installed it and ran ./script/demo it said:

./script/demo: 26: curl: not found

I was thinking, if SwitchPipe asks for sudo access, surely it should
check to see if curl is installed and if it isn't installed install
it, as it appears to be an integral enough part to be ran twice during
the demo.

Ryan Bigg

unread,
Feb 6, 2008, 7:54:43 AM2/6/08
to SwitchPipe
Also in addition to this, script/demo should not request
http://127.0.0.1:10000/webrick_thing as that returns a zero sized
reply. Altering it to go to webrick_thing/hello gives <HTML>hello,
world</HTML> which is better than a zero sized reply and is exactly
what the user can expect when they run the demo.

Peter Cooper

unread,
Feb 6, 2008, 10:39:29 AM2/6/08
to SwitchPipe
It would be rather difficult to install curl, as it's not a Gem, and I
don't want to get too OS dependent. Perhaps the alternative would be
to just replace those lines with ruby -e "require 'open-uri'; puts
open('URL HERE').read" ? I'll give that a try, thanks!

Peter Cooper

unread,
Feb 6, 2008, 10:40:37 AM2/6/08
to SwitchPipe


On Feb 6, 12:54 pm, Ryan Bigg <radarliste...@gmail.com> wrote:
> Also in addition to this, script/demo should not requesthttp://127.0.0.1:10000/webrick_thingas that returns a zero sized
> reply. Altering it to go to webrick_thing/hello gives <HTML>hello,
> world</HTML> which is better than a zero sized reply and is exactly
> what the user can expect when they run the demo.

Odd. It shouldn't do. I mean, it did in 1.01, but that wasn't publicly
released. From 1.02 onwards (and in trunk), the root of the webrick
app is pointing at the "hello world" servlet too, and on naked
installs I've done on test machines it returns the HTML at the base
URL. Do you have any ideas why it might not be on yours?

Pete
Reply all
Reply to author
Forward
0 new messages