I have a post that summaries http web servers on iphone.
In this post, we will try TouchHTTPD.
TouchCode is open-source frameworks by schwa
One of the TouchCode project is TouchHTTPD, which is "An iOS compatible Cocoa Web Server".
It has been moved from google-code to github. You can find it here now: https://github.com/TouchCode/TouchHTTPD
Now using submodules for TouchXML & TouchFoundation. also projects in TouchCode.
(TouchXML is one of the best cocoa XML parser framework)
Some links of the sample projects are broken. Check the path in Xcode and fix that by yourself. You may need to copy TouchXML / TouchFoundation to some folder like "support" or "external" in order to build the samples.
I picked the "iPhone WebDAV Server " sample project. However it doesn't work well.
I can access the server from browser.
Usually, Finder presents a WebDAV share as an external disk.
In our case, MacOS Finder can auto detect the web server of iPhone, but some error happens. I cannot copy file into the WebDAV disk.
Error Message:
Finder cannot finish this operation.
I don't know how to get TouchHTTPD works. If you have any idea, please leave a comment.
I think CocoaHTTPServer is a better choice, which actually works.
Check this post about cocoahttpserver.
No comments:
Post a Comment