Questions tagged [gcdwebserver]

Lightweight GCD based HTTP server for OS X & iOS (includes web based uploader & WebDAV server)

GCDWebServer is a modern and lightweight GCD based HTTP 1.1 server designed to be embedded in OS X & iOS apps.

See https://github.com/swisspol/GCDWebServer for details.

104 questions
14
votes
4 answers

Send UIImage to LocalwebServer using GCDWebServer

My app using GCDWebServer I get a photo from my iPhone album by using AssetsLibrary and I store them in NSDocumentDirectory. I just want to get access Url to this photo to show them in a web page. There is my code : [_webServer…
user4525004
10
votes
2 answers

What is GCDWebServer for?

I have a problem when loading the local web from WKWebView in iOS8. There are some suggestions that I should use GCDWebServer. I read through GCDWebServer, but not really understand what GCDWebServer is for on mobile application's side. Could you…
chipbk10
  • 5,783
  • 12
  • 49
  • 85
7
votes
2 answers

unable to get the video on web browser using GCDWebServer in swift

I created a small demo app where app access the image and videos from iPhone using UIImagePickerController. When I select any image or video, app creates a copy of it( image or video) in document directory. And create a web server on iPhone using…
sia
  • 1,872
  • 1
  • 23
  • 54
7
votes
3 answers

Invalid top-level type in JSON write

I'm trying to create a simple JSON object but I still get error and I know what's wrong in my code: NSString *vCard = [BRContacts getContacts]; // this is just a string, could be nil NSDictionary *JSONdic = nil; if (vCard) { JSONdic =…
Massimo Polimeni
  • 4,826
  • 4
  • 27
  • 54
6
votes
1 answer

How to implement Video Seek support with an embedded HTTP server on iOS?

I have a client iOS application that uses GCDWebServer to serve images and videos stored in the NSSearchPathDirectory.DocumentDirectory folder of the app on my device. Upon app startup, I start an instance of GCDWebServer and add a file response…
bizz84
  • 1,964
  • 21
  • 34
5
votes
0 answers

GCDWebServer for streaming

I was trying to stream a mp4 video from a remote server on a iOS device. I somehow got [ERROR] Error while writing to socket 15: Broken pipe (32) after a few writes. Not sure where is wrong. Can you kindly give any advice? iOS re-routing requests…
Rao
  • 51
  • 7
5
votes
2 answers

GCDWebServer static website on Swift

I'm trying to make GCDWebServer show static content. I have code import UIKit import Foundation class ViewController: UIViewController { var webServer:GCDWebServer? let urlpath = NSBundle.mainBundle().pathForResource("index", ofType: "html",…
Alexey K
  • 6,537
  • 18
  • 60
  • 118
4
votes
1 answer

Support for HTTPS web server iOS

I have used GCDWebServer for an http server on iOS. However, by the end of the year https will be required. Is there another web server library compatible with https for IOS? I have no idea what is involved with a change like this.
Aron Nelson
  • 838
  • 1
  • 9
  • 17
3
votes
1 answer

Crash in GCDWebServer when app enters background

I'm getting a crash from GCDWebServer (3.3.3) when my app enters the background: #3 0x000000010041ea80 in -[GCDWebServer dealloc] at project/Pods/GCDWebServer/GCDWebServer/Core/GCDWebServer.m:221 #4 0x00000001004248b8 in __destroy_helper_block_…
Kamchatka
  • 3,597
  • 4
  • 38
  • 69
3
votes
1 answer

How to get local html file through gcdwebserver

I am running local GCDWebServer in iphone simulator,I stored some html files inside document directory,right now i want to access that html file through gcdwebserver,i am trying but not getting response,please help me code: [self…
skyshine
  • 2,767
  • 7
  • 44
  • 84
3
votes
1 answer

How to serve a remote file (taken from a remote SMB server) to certain requests

I'm trying to serve a video file as response when certain request hits the server (server running on a mobile app). eg: someone goes to http://mylocalip:8080/video, and I want to serve him with a video. This video file can be stored locally, or can…
eiprol
  • 389
  • 1
  • 3
  • 14
3
votes
2 answers

GCDWebServer was built for newer iOS version (8.3) than being linked (7.0)

I'm building my app using Ionic Framework and updating it for iOS 9 at this time. My iOS Build Target is set to 9.0. So I'm not sure why it's trying to build for 8.3. Where can I change the build target for GCD Web Server and change the link from…
Caleb Faruki
  • 2,577
  • 3
  • 30
  • 54
3
votes
0 answers

GCDWebServer doesn't work in different wifi network

"Gcdwebserver doesn't work if i connected with different WiFi network." It only works if my mobile and PC is in the same WiFi network. What i have to do if i want GcdwebServer work even in different WiFi network?
Kevin Mac
  • 320
  • 2
  • 10
2
votes
1 answer

Access local files in WKWebView using JavaScript

I have an iOS app which part of logic is written in JavaScript. I've created a WKWebView where I load my initial .js file, but when executed, it needs to read from other files from my local resources. The problem is I'm missing a concept of how do I…
mcgtrt
  • 657
  • 6
  • 22
2
votes
2 answers

GCDWebServer via Hotspot network

I'm developing an application where devices can connect and interact with each other via common wi-fi network and for the purpose of file exchange I'm using GCDWebServer. Everything is working great when I use usual wi-fi network or devices are…
Eugene Alexeev
  • 1,152
  • 12
  • 32
1
2 3 4 5 6 7