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
0
votes
1 answer

Form request contains no keys

I'm attempting to use Swift to process a simple HTML form. Following the Objective-C code given in the READ ME, I cam up with the following Swift. let webServer = GCDWebServer() webServer.addDefaultHandlerForMethod("GET", requestClass:…
Hartix
  • 310
  • 3
  • 13
0
votes
1 answer

GCDWebServer, when POST, request.query is nil

use GCDWebServer, when method is GET, NSLog request.query is the parameter dictionary I passed, that is want I want. But when is POST, request.query is nil? why? thx
user4728148
0
votes
1 answer

GCDWebServer run -addHandlerForMethod: twice time with different path, second request failed?

I use GCDWebServer, run method -addHandlerForMethod:path:requestClass: twice with different parameter "path". then NSLog webServer.serverURL, first time it success:192.168.0.121:8080, but second time it fail:nil why? please help me. #import…
user4728148
0
votes
1 answer

GCDWebServer how to add custom parameter to the request(GET/POST)

[_webServer addHandlerForMethod:@"GET" path:@"/111" requestClass:[GCDWebServerRequest class] asyncProcessBlock:^(GCDWebServerRequest *request, GCDWebServerCompletionBlock completionBlock) { GCDWebServerDataResponse *response =…
user4728148
0
votes
1 answer

GCDWebServer Version in wkWebView

In wkWebView, which version of GCDWebServer framework is used. How can I get the version of GCDWebServer used in wkWebView. I have already checked Info,plist in GCDWebServer framework but didn't find any variable in GCDWebServer to get Version.
0
votes
1 answer

Client cannot receive image data from gcdwebserver

I try to create a web server on iPhone to provide urls of images in ablum. Before sending response to client, I need to do some adjustment on images (something like re-size). These actions take up to 1 or 1.5 sec per image before response to client.…
Chiakie
  • 271
  • 1
  • 2
  • 12
0
votes
3 answers

iOS: GCDWebServer does not work on device

I use GCDWebServer, precisely WebUploader. When I test it on the iPhone Simulator then everything works, but on the device I cannot see web page when I enter e.g. http://192.168.2.4:8080 to the browser. I got Connection timed out from the browser. I…
Bartosz Bialecki
  • 4,391
  • 10
  • 42
  • 64
0
votes
1 answer

Convert Ios Photo Album path url same like as Document directory File-path

As per my requirement, want to access iOS device photos app file url (not file as data) for my GCDWebUploader. I want assets library url for my web server. NSString* documentsPath =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,…
Jashu
  • 1,061
  • 13
  • 19
0
votes
1 answer

HTTP Server in iOS to list files Documents directory

I am trying to create an HTTP Server inside my iOS application, to develop something like Xender application. Right now I Succeed to setup HTTP Server inside my Application and hosting any HTML file there, that can be loaded on another Device/System…
Mrug
  • 4,963
  • 2
  • 31
  • 53
0
votes
1 answer

Using GCDWebServer in Swift project: Use of unresolved identifier

I am trying to add GCDWebServer to a Swift (1.2) project. I added the GCDWebFolder directory to my project as per the directions on the readme. Next, I added a bridging header: // Demo-Bridging-Header.h #import "GCDWebServer.h" #import…
0x6A75616E
  • 4,696
  • 2
  • 33
  • 57
0
votes
0 answers

Form processing using GCDWebServer and Swift

Wondering if anyone has gotten form processing working from Swift. Taking a cue from the form on the README it says to return the following for the addHandlerForMethod (in Objective-C)... return [GCDWebServerDataResponse responseWithHTML:html]; So…
Hartix
  • 310
  • 3
  • 13
0
votes
1 answer

Differentiate form actions in GCDWebServer?

I am using two forms on an HTML page hosted via GCDWebServer. I have the first form setup like this...
and…
Scott
  • 1,154
  • 1
  • 12
  • 25
0
votes
1 answer

GCDWebServer handlers for background file transfer (Not GCDWebUploader)

Has anybody already tried to implement an handler for GET requests (the same question for POST method) without using the included (and cool) GCDWebUploader? I need the server to respond to a GET request http://local/download/filename.ext uploading…
Lookaji
  • 1,023
  • 10
  • 21
-5
votes
2 answers

unexpectedly found nil while unwrapping an Optional value

I put the m3u8 in GCDWebServer to play. When I use Wi-Fi, it is no problem. But using 4G, appears this problem.
1 2 3 4 5 6
7