I am trying to write an iPhone application that uses a Python server. The iPhone application will send an HTTP request to the server, which should then respond by sending back a file that is on the server. What is the best way to do this? Thanks.
If you're literally just serving content (ie, not doing any calculations or look-ups), then use the nginx webserver to serve it based on URL.
How to respond to an HTTP request using Python