cocoahttpserver

Cocoahttpserver serving images from iPhone App Bundle

I am having trouble getting Cocoahttpserver from Duesty Designs (awesome open source library makers of CocoaAsyncSocket) to serve images from my app bundle. Using the example iPhone project I can serve up an html file from the Resources dir in my project, but images refernced like: <img src='foo.png' /> are not rendered. Does anyone ...

Change Download File Name in Cocoahttpserver

I'm using cocoahttpserver in an iphone app, but when I try to download it (by clicking a link in the standard demo app), my sqlite file (myDatabase.sqlite) arrives on my Mac Desktop as "Unknown" with no suffix at all. However, when I "Save As..." it provides the name fine. I would prefer it to save the file with the sqlite suffix. So, i...

How can I derive an address and port from -[NSNetService addresses] so I can use it with NSURL

I'd like to use CocoaHTTPServer to set up peer-to-peer communication between different instances of an application on a network. Setting up the server was quite easy, but writing the client is another story. I have the server broadcasting over Bonjour. My client is able to find and resolve the service, but I'm stuck when it comes to get...

ASP.NET and The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

I'm making an httpwebrequest using a public Root authority Certificat file X509. I only have the public key, not the private key. Everything works fine from a Console app but it does not work from an asp.net app. I get the error: "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure chan...

HTTPHeaders Added to Downloaded File - CocoaHTTPServer???

In an iPhone app where I use cocoahttpserver and take a sqlite database file from the iPhone and download it with a browser to my PC, when I look at the downloaded file using TextEdit, I see the text (below) at the end of the file. This text has apparently no effect on use of the database file, but I would prefer to not add stuff to the ...

saving files to cocoahttpserver in iphone

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. ...