Ubuntu user can easily share a temporary file/folder to others by running SimpleHTTPServer script with python.

Just navigate to the directory you want to share in terminal and run:

python -m SimpleHTTPServer

then users in the same LAN can get this directory by typing this in browser:

http://http_server_IP_here:8000

However,this doesn’t support uploading files and what if you want a file comes from a Windows user.
Here is a script written by bones7456 that create a simple http server for others uploading files from Windows as well as downloading on the same network.

Create and edit a new file “SimpleHTTPServerWithUpload.py” (without quotes),then copy and paste following code as its content:

pasting python code doesnt really work too well. Where are the indents? And so ya know … the quotes using in wordpress or whatever CMS this is are very odd and don’t like being copied. So … any change you could get this working then link people to the .py file?

How can I make an iOS ASIHTTPRequest work with a Python SimpleHTTPServer?…

0down votefavorite I am working on a project (that i will not be releasing to the app store – just for fun) that will upload an image via an HTTP Post request from my iPhone to a server that I have running the Python script SimpleHTTPServer(http://ubun…