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

iOS VOIP socket does not work in background until handler is fired

I am using GCDWebserver in my app and setting up GCDWebserver’s listening socket as the VOIP socket. Everything works well until my app goes in background for more than 3 mins. I can see that my GCDWebserver is running after 3 mins but my socket…
Vik Singh
  • 1,563
  • 2
  • 19
  • 36
1
vote
2 answers

How to understand this GCDWebServer swift unit test code?

I have come across this code: class WebServerTests: XCTestCase { let webServer: GCDWebServer = GCDWebServer() var webServerBase: String! /// Setup a basic web server that binds to a random port and that has one default handler on…
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
1
vote
0 answers

IOS Live streaming

Problem: I need to download mp4 video from media server and simultaneously feed the localhost httpserver (GCDWebServer) to enable video streaming. What have i tried so far: I am able to download a video file from media server and then provide the…
blganesh101
  • 3,647
  • 1
  • 24
  • 44
0
votes
0 answers

Troubleshooting GCDWebServer Library on tvOS: Directory Access

I am using GCDWebServer library to create a http server on my tvos device. When I do so, the server link successfully opens the web page associated with the server. However, it throws 500 error on any API that I hit(using the buttons on webpage…
0
votes
0 answers

Unable to upload large file using GCDWebServer in swift

I am trying to upload a large video file using GCDWebServer but am unable to upload it. Video with small size is uploaded successfully but problems occur in large video file uploading. Actually using GCDWebServer I am importing files from pc to an…
Tushar Lathiya
  • 940
  • 9
  • 26
0
votes
0 answers

Dealing with deprecation warnings by simply ignoring the warnings

The developers of gcdwebserver version 3.5.4 added #pragma clang diagnostic ignored "-Wdeprecated-declarations" around lines that were causing deprecation warnings in iOS 15. Specifically, lines having to do with CC_MD5 and…
Jeff
  • 2,659
  • 1
  • 22
  • 41
0
votes
0 answers

Ios app is using more than 50 GB of space xcode and Ad Hoc installation

I have recently provided a link for my client to install an ios app on their IPAD through AD Hoc build. Everything is working fine for 2 weeks, but we see that the app has already consumed more than 50 GB in usage and I am not sure why and what is…
Prashanth Kumar B
  • 566
  • 10
  • 25
0
votes
1 answer

GCDWebServer: How do I change file permissions on server for WebDAV operations? (iOS)

I'm currently trying to use GCDWebServer to host a local webpage that's requested by a WKWebView when the app starts. I want to be able to upload external files to the server by grabbing files with a UIDocumentPickerViewController while the app is…
Makoren
  • 321
  • 1
  • 3
  • 12
0
votes
1 answer

GCDWebServer: Unable to open home page when using real iPhone

I have an old app using GCDWebUploader of GCDWebServer to upload files into the app. And I copy the implementation code into a new project. The problem: in this new project, the home page of GCDWebServer could be opened in iOS Simulator but cannot…
Zhou Haibo
  • 1,681
  • 1
  • 12
  • 32
0
votes
0 answers

GCDWebServer: How to return JSON data when receiving an API Request

The scenario would be app host a GCDWebServer, and when it receives an API Request like a "GET" HTTP request - http://serverURL:8080/search/brand?query=benz&page=1. Then return the response with a JSON format data to the sender. I think I should use…
Zhou Haibo
  • 1,681
  • 1
  • 12
  • 32
0
votes
0 answers

Local server with custom host name

Is it possible to host a local server with a custom hostname in iOS? I am trying to create an app that needs a requirement for a local server, I tried different libraries to host a local server like GCDWebServer and Telegraph. But none of the…
Perseus
  • 1,546
  • 4
  • 30
  • 55
0
votes
2 answers

Start local server iOS & load it on WKWebView

I found following libraries to start a server locally. https://github.com/httpswift/swifter https://github.com/swisspol/GCDWebServer For instance, I'm using swifter. It does compile for iOS. I also added code to start a local server as…
sagarkothari
  • 24,520
  • 50
  • 165
  • 235
0
votes
1 answer

How to read form body of a GCDWebServer POST request

I'm struggling to believe this is so difficult but after spending a couple of hours trying to figure it out, here I am asking the hive mind for help! My question is very similar to this one however the answers in there don't help me as I have no…
Plasma
  • 2,622
  • 2
  • 20
  • 35
0
votes
1 answer

Can we manually download/cache the transport stream while streaming m3u8 file

I am trying to play transport stream from m3u8 file. My requirement is to process the downloaded data before giving it to AVPlayer. For that I am using a proxy server[GCDWebserver] to intercept all the request. In proxy server I will download the…
Akhil
  • 333
  • 3
  • 13
0
votes
1 answer

How to limit upload file type/format in GCDWebUploader

My app involves GCDWebUploader for audio files uploading to iPhone's sandbox. It is working well but I want to limit the uploading file type/format that user could upload, e.g. xxx.doc, xxx.jpg are forbidden for uploading. Currently I want to allow…
Zhou Haibo
  • 1,681
  • 1
  • 12
  • 32