Help me here.

I once used a utility (written in Python, I think), that is for sharing files across machines using HTTP.

It creates a tiny web server + URL which is good for one single GET request only, then it shuts down.

This allows you to GET a file from another machine using HTTP.

Please can anyone tell me what this command is?

link|improve this question

I vaguely remember reading about something like this. But for the life of me, I cannot remember the name of the program. – Zoredache Jan 20 '10 at 22:21
feedback

4 Answers

up vote 10 down vote accepted

Are you talking about woof?

link|improve this answer
You sir, are the winner. Thanks very much!!!!! – Rich Jan 20 '10 at 22:30
Rock on. Cheers :) – squillman Jan 20 '10 at 22:31
home.unix-ag.org/simon/woof.html – Sunny Jan 20 '10 at 22:31
feedback

Actually you don't need anything except Python to do that.

cd dir/to/share
python -m SimpleHTTPServer

This way you can access dir/to/share through http://HOSTNAME/. To stop sharing just CTRL+C.

link|improve this answer
SimpleHTTPServer's default port is 8000, so I guess it would be HOSTNAME:8000 . Simple and very useful ! – Falken Jan 21 '10 at 10:54
1  
Yes, that is right. You can also specify a different port as the last argument, eg. python -m SimpleHTTPServer 7999 will listen on port 7999 – rocku Jan 21 '10 at 11:09
very neat! thanks – Rich Feb 4 '10 at 22:01
feedback

I would still like to show you this project called quickserve. It seems to improve upon the ideas of woof. from the CLI you can have it share a file or directory, generate a random username/password, http server and URL. You can even set the '-u' flag and enable an upload to your web server. Its only make depend is python.

link|improve this answer
feedback

And if you don't have Python? Use NetCat.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.