Questions tagged [cocoahttpserver]

CocoaHTTPServer is a small, lightweight, embeddable HTTP server for Mac OS X or iOS applications.

CocoaHTTPServer is a small, lightweight, embeddable HTTP server for Mac OS X or iOS applications.

Sometimes developers need an embedded HTTP server in their app. Perhaps it's a server application with remote monitoring. Or perhaps it's a desktop application using HTTP for the communication backend. Or perhaps it's an iOS app providing over-the-air access to documents. Whatever your reason, CocoaHTTPServer can get the job done. It provides:

Built in support for bonjour broadcasting IPv4 and IPv6 support Asynchronous networking using GCD and standard sockets Password protection support SSL/TLS encryption support Extremely FAST and memory efficient Extremely scalable (built entirely upon GCD) Heavily commented code Very easily extensible WebDAV is supported too!

SDK

54 questions
2
votes
3 answers

Objective-C/CocoaHTTPServer - Is it possible to return response to the app?

I am developing an iPhone app which is using CocoaHTTPServer for making remote server communication. The app will send the request details to the CocoaHTTPServer which will store the request locally. Once the internet connectivity is available,…
Sinu Varghese
  • 800
  • 1
  • 14
  • 39
2
votes
1 answer

iPhoneHTTPServer with SSL and certificate

I'm using the iPhoneHTTPServer sample into my project for using HTTPServer, and host a .plist file with a .ipa to simulate an ad-hoc deployment. As you may know, since iOS7, the server which hosts files must be secured, and so I'm trying to use a…
Christophe Gigax
  • 3,211
  • 4
  • 25
  • 37
2
votes
1 answer

Chrome Cast won't play served video

Okay so I'm developing an app for the chrome cast on IOS. One of the functions my app will perform will be to play local videos from your device. To do this I'm using an external source found on github called CocoaHttpServer. This Http server allows…
Tom
  • 640
  • 1
  • 7
  • 25
2
votes
3 answers

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…
Don
  • 31
  • 4
2
votes
0 answers

How to download file from iOS?

My application want to run one http server and other devises can download files from it. I am using cocoa http server and follow: https://github.com/robbiehanson/CocoaHTTPServer/blob/master/Samples/DynamicServer/MyHTTPConnection.m My http connection…
why
  • 23,923
  • 29
  • 97
  • 142
1
vote
0 answers

cocoaHTTPserver multipart/form-data timing out?

I'm trying to setup a file server inside of my iOS application. I have cocoaHTTPserver setup to do the leg work. It didn't support POST for large-file uploads out of the box so I modifying it to get it working by piping the content body out to a…
patrick
  • 133
  • 1
  • 11
1
vote
1 answer

Cross Origin HTTP Request from CocoaHTTPServer

I'm using CocoaHTTPServer to host my own HTML file. In index.html I'm attempting to perform a request to another resource but I'm unable to execute this resource successfully. Here is my current setup. self.httpServer = [[HTTPServer alloc]…
aahrens
  • 5,522
  • 7
  • 39
  • 63
1
vote
1 answer

What are the embedded web server libraries that I can use for Windows RT app?

For android and iOS, I can use nanohttpd and cocoahttpserver respectively but I cannot seem to find one for WinRT.
Marc Tan
  • 118
  • 1
  • 5
1
vote
1 answer

Cocoa Static Library - Some Third Party Source Files Are Not Working Properly

First of all I want to clarify that I may have not address the problem clearly as stated in the title of my problem. Please forgive because I really don't know how to express this. I am building a Cocoa Static Library that includes Cocoa Http…
JLT
  • 3,052
  • 9
  • 39
  • 86
1
vote
0 answers

Simple https web server as command line application for Mac in objective C

I want to write a simple web server that handle https request. The ssl identity will be store in the keychain. I can read and write from there. But how can I make it running forever application that wait for a http request and respond? I am very…
karim
  • 15,408
  • 7
  • 58
  • 96
1
vote
0 answers

iOS CocoaHttpServer File Download Extremely Slow

I am currently building an http server in iPhone that allows wifi speakers to download music from it. This is so far what I have done: This is the part that initializes the http server: - (void)startHttpServer { [DDLog addLogger:[DDTTYLogger…
JLT
  • 3,052
  • 9
  • 39
  • 86
1
vote
0 answers

Use CocoaHTTPServer to catch when the Socket response

I'm using CocoaHTTPServer, and I'm wondering that can we use it to catch when a browser (eg: an UIWebView in our app) request to load a local html, and when the Socket response to the browser? Now, as far as I uderstand. When UIWebView request to…
1
vote
1 answer

Use CocoaHTTPServer on iOS to share files?

I like to know how to share files from iOS with CocoaHTTPServer over WiFi. Is this even possible, or isn't this possible with CocoaHTTPServer? I already made it to share the default html site via WiFi, but I cant make it to show the whole directory.…
David Gölzhäuser
  • 3,525
  • 8
  • 50
  • 98
1
vote
1 answer

iPhoneHTTPServer/CocoaHTTPServer File Uploads

I have managed to get the iPhoneHTTPServer sample within CocoaHTTPServer to work - I can display web pages, run JavaScript etc but what I cannot figure out is how to upload a file from my PC onto my iPhone. I have looked at various JavaScript…
SparkyNZ
  • 6,266
  • 7
  • 39
  • 80
1
vote
1 answer

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…