4

I need to download a file from an url and save it to local cocoahttpserver I have in my iphone app so that later i can access it using something like http://localhost/filename.txt

I have the cocoahttpserver code. But I am unable to figure out how to save files to it. Any help would be great.

Thanks.

Hetal Vora
  • 3,341
  • 2
  • 28
  • 53

1 Answers1

0

You could configure both your file's download directory and the http server to access your app's Documents directory.

hotpaw2
  • 70,107
  • 14
  • 90
  • 153
  • The server's document root is the Documents directory of iphone. But how do I access it with a url? I tried http://127.0.0.1:/filename.txt I even tried substituting the local ip and the internet ip address, but it doesn't get the file. – Hetal Vora Sep 02 '10 at 20:34