Sunday, March 13, 2011

cocoahttpserver HTTP Server File Upload on iPhone

Previous Post :
HTTP Web Server, File Upload on iphone

----- Update 20140729 -------

The original googlecode link is removed.

Please check this https://github.com/vodkhang/CocoaHTTPServer-Iphone
http://vodkhang.com/software-development/cocoa-http-server-bug-fix

---------------------------------------------
Let's try cocoahttpserver
we can get it from google code: code.google.com/p/cocoahttpserver/

we focus on iphone project, so just try the iphone sample code.
Get a local copy of the cocoahttpserver repository with this command:
hg clone https://cocoahttpserver.googlecode.com/hg/ cocoahttpserver

Try the iPhoneHTTPServer sample



Run on simulator, type your ip address url on your browser.(in this example, the port is 12345);
You'll see a simular content as follows,

The http server works. but we want file uploading to iphone. what next?
Download the iPhoneHTTPServer3.zip sample from http://code.google.com/p/cocoahttpserver/downloads/list

Run the demo project. It works like a charm!!


This is all thanks to developer Deusty and Nonnus who graciously decided to share the code with the development community!

Previous Post :
HTTP Web Server, File Upload on iphone

5 comments:

  1. Replies
    1. I believe the site is moved to Github
      https://github.com/robbiehanson/CocoaHTTPServer

      Delete
    2. I couldn't find iPhoneHTTPServer3.zip file. Could you share that via email or upload it on your post.

      Delete
    3. Check this https://github.com/vodkhang/CocoaHTTPServer-Iphone

      Delete
  2. The link is not working. Is there any working demo of this ?
    I got the CocoaHTTPServer, but I cannot find a way to actually upload a file

    ReplyDelete