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
12
votes
2 answers

File transfer from Browser to locally connected iPhone

Right now, I have created an HTTP Server on My iPhone Application and have hosted HTML there. Then Accessing it on Browser of the system that is in the same network of iPhone. I can see the File on my Browser. Now using WebSockets I am trying to…
Mrug
  • 4,963
  • 2
  • 31
  • 53
10
votes
2 answers

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…
Jeffrey GAdoury
  • 101
  • 1
  • 1
  • 3
6
votes
3 answers

Create an iOS App that runs as Web Server in background

I want to make an iOS application (for iPad specifically), which behave like a web server. I saw the examples coming with COCOAHTTPSERVER, but i didn't understand something. Is it possible for my application, while being in background, to receive a…
6
votes
1 answer

CocoaHTTPServer on iOS: set up server so user can download NSData as file

I want to make the following webpage using CocoaHTTPServer: there should be a link to download a file, but the source file must be NSData object in memory. As far as I see in samples, there is an easy way to link some file on iPhone to the…
brigadir
  • 6,874
  • 6
  • 46
  • 81
4
votes
1 answer

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…
Hetal Vora
  • 3,341
  • 2
  • 28
  • 53
4
votes
0 answers

NSURLConnection fails with CocoaHTTPServer with SSL using certificate signed by custom CA

I have a small app with CocoaHttpServer siting inside of it. I want to enable it only for loopback calls and I want to be able to make those calls only from my app. Don't ask why - I need it. self.httpServer = [[HTTPServer alloc]…
4
votes
1 answer

How to set up cocoahttpserver with configure MIME type

This question need a lot background on apple's air play profile configure. Firstly, I set up the web server in the iOS app with cocoahttpserver, and want to provide the access to .mobileconfig, but this need set up the MIME type as…
Forrest
  • 122,703
  • 20
  • 73
  • 107
3
votes
0 answers

CocoaHTTPServer server not playing video on ios7 issue

I have used CocoaHTTPServer server to stream media files. App is playing media with httpURL with MPMusicPlayerController Player controller. My implementation works fine on older iOS version but fails on iOS7 gets error { …
Ganesh Amrule
  • 407
  • 2
  • 12
3
votes
1 answer

Stream video with CocoaHTTPServer

I'm trying to implement a server on MAC OS X that streams video for iOS devices. On the server side I use CocoaHTTPServer to return an .mp4 video. - (HTTPFileResponse*)video:(NSString*)pPath { BOOL fileExists =…
3
votes
2 answers

Binary data from iOS to WebSockets

I am using CocoaHTTPServer library and trying to transmit binary data to a web socket. Web socket opens successfully, and can receive strings from iOS without problem. However, when I try to send a binary data through the socket, I get a Could not…
Ege Akpinar
  • 3,266
  • 1
  • 23
  • 29
3
votes
1 answer

How to add CocoaHTTPServer to an iOS project on XCode 4

I'm trying to add CocoaHTTPServer to my project. I encountered many problems on the way - my problem (adding CocoaHTTPServer to a project (and have it working)) is still there - but I've also included the errors and solutions I encountered on the…
Raekye
  • 5,081
  • 8
  • 49
  • 74
3
votes
1 answer

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…
Genericrich
  • 4,611
  • 5
  • 36
  • 55
2
votes
1 answer

How to know when cocoahttpserver has started

Does it send a notification that it has started that can be listed for, or is there a delegate protocol to implement? I can't find the documentation on the Google code page.
Tom
  • 47
  • 1
  • 4
2
votes
1 answer

How to provide native support for unsupported webRTC JS APIs in WebKit(WkWebview)

Objective: Providing native support for the unsupported WebRTC JS APIs in WebKit and make WebRTC call through the webapp loaded in WkWebView. So far What I have tried: As of now WebRTC W3C JavaScript APIs is not supported in webkit. There is a cross…
Durai Amuthan.H
  • 31,670
  • 10
  • 160
  • 241
2
votes
1 answer

get shared/server url using CocoaHTTPServer

I am creating application that play video using chromecast device on TV (Apple TV or monitor that support HDMI port). Application is playing url like "https://serveraddress/video.mp4" but its not playing the video stored in app bundle(local video).…
Seema Sharma
  • 379
  • 3
  • 12
1
2 3 4