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
1
vote
1 answer

cocoahttpserver - disaply file

I try to use cocoaHttpServer for display my document's folder files with pc/mac browser, I use iPhoneHTTPServer sample example, I change root directory but I don't see any file. This is my code: [DDLog addLogger:[DDTTYLogger…
francesco.venica
  • 1,703
  • 2
  • 19
  • 54
1
vote
1 answer

Streaming response from CocoaHTTPServer for use with EventSource

I'm trying to figure out how to leave a connection open with CocoaHTTPServer in order to make use of Server Sent Events (SSE). Along the lines of http://tenderlovemaking.com/2012/07/30/is-it-live.html I can set the content type to text/event-stream,…
1
vote
1 answer

Using CocoaHTTPServer to "send" a message

I am using CocoaHTTPServer in a MacOSX app (Server) that serves up a local directory of images. I have a corresponding iOS app (Client) that uses AFHTTPRequestOperation (AFNetworking) to retrieve an image file from the Mac over the local network.…
gheclipse
  • 971
  • 8
  • 13
1
vote
2 answers

Objective-C/CocoaHttpServer - Trying to do a simple GET request with one parameter

I'm trying to use the "CocoaHTTPServer" found at https://github.com/robbiehanson/CocoaHTTPServer. I have added it to my project, and now, if i type on my browser something like this: 192.168.3.114:45000 i receive an html page called index with a…
Hieicker
  • 595
  • 1
  • 11
  • 29
1
vote
1 answer

iOS device as HTTP Server

I am new to network programming. I want an iOS device to work as an HTTP server and display contents of document directory and having directory operations like create, delete, putting contents on directory on server which also reflects in iOS device…
1
vote
2 answers

Connect more than 3 ios devices with each other

I want to connect 3 iOS devices with each other. For example, One iOS device will be like a server, and other 2 device will connect like client, to that server. To make iOS Device, as server, i am using CocoaHTTPServer, There is no any internet…
kokemomuke
  • 554
  • 7
  • 10
1
vote
0 answers

Share folder between Mac app and iOS app

How can I share a folder between a Mac app (sender) and a iOS app (receiver)? Are there any high-level APIs to do this? Or should I use something like CocoaHTTPServer?
hpique
  • 119,096
  • 131
  • 338
  • 476
1
vote
1 answer

Can I deploy Cocoa http server with my phonegap/cordova IOS app

I have an IOS app built with phonegap/cordova 2.1.0 and I would like to use a cocoahttpserver running with the app so that encrypted locally stored video can be streamed from the cocoahttpserver to the app. This may seem like overkill and please…
refugene
  • 383
  • 2
  • 16
1
vote
0 answers

CocoaHTTPServer and Port 80, works on iPod/iPad, Permission Denied Error on the Phone

so, I use the CocoaHTTPServer to supply a website on an iOS Device. When using an iPod Touch or an iPad with iOS 5.1 I can listen on Port 80, less hassle for the user. Tried doing the same on my iPhone 3G, still running iOS 4.2, getting the…
Bersaelor
  • 2,517
  • 34
  • 58
1
vote
0 answers

Sending HTTP GET and POST from Cocoa

I have one example of event: "http://localhost:8800/broker/event?topic=topic1&clientID=user&_method=POST¶m1=a¶m2=b" I have a button that should create that POST request as the same of access that web link on a browser. I tried following this…
0
votes
1 answer

Selenium for iPhone emulator compile error

when compiling the code for iWebDriver.xcodeproj I get the following error error: There is no SDK with the name or path '/Users/sqaresources/svn_projcts/trunk/iphone/lib/buildtime-src/cocoahttpserver/iphonesimulator3.2' the following warnings…
Jake
  • 70
  • 8
0
votes
0 answers

iOS CocoaHttpServer works on simulator but not on device

I want to use CocoaHtttpServer to build a server on my iPhone. and I have the code like this ``` _httpServer = [[HTTPServer alloc] init]; [_httpServer setPort:50517]; [_httpServer setType:@"_http._tcp."]; NSString *webResourcePath = [[[NSBundle…
0
votes
1 answer

Can my iPhone app host a Local Web server and allow other apps to the phone to access the LWS?

I will use one of the following cocoahttpserver or iPhoneHTTPServer3, SimpleWebSocketServer, MultithreadedHTTPServer3 to host a server in my app. Iam aware that a built-in apache is not possible.. Can other apps in the phone make http request to…
srihariv
  • 159
  • 6
0
votes
1 answer

How to stream audio(Device Songs) using cocoahttpserver in swift?

I'm creating application that one device act as server and other devices join, I manage to create server, but I can't find a way to stream audio (Device local songs). Steps: i create server with GCDWebServer get NSData from MPMediaItem set songData…
user7956625
0
votes
0 answers

How to create an HTTPS server on IOS using cocoaHTTPServer?

I made a javascript cloud app that runs on a webpage in a webview on my iPad app that communicates via WebSocket connection but it only works when im on my http site and not https or else I get an CFNetwork SSLHandshake failed (-9806) error in Xcode…
wsnyder
  • 13
  • 5