CocoaHTTPServer

Change Download File Name in Cocoahttpserver

我们两清 提交于 2019-12-21 21:11:43
问题 I'm using cocoahttpserver in an iphone app, but when I try to download it (by clicking a link in the standard demo app), my sqlite file (myDatabase.sqlite) arrives on my Mac Desktop as "Unknown" with no suffix at all. However, when I "Save As..." it provides the name fine. I would prefer it to save the file with the sqlite suffix. So, it must be the suffix causing the problems???? If this is the problem, I cannot seem to find a way in the classes to download the correct file name BUT then

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

ぐ巨炮叔叔 提交于 2019-12-11 08:39:38
问题 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 simple welcome message (this page is stored inside the default project). This is ok. It works correctly. What i need to understand now, is how can i for example do a simple GET request typing on the browser something like "192.168.3.114:52000

File transfer from Browser to locally connected iPhone

时间秒杀一切 提交于 2019-11-30 14:54:23
问题 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 send File from Browser to Application, but It's not working. It's fine with Text Message but Not in case of Data. As a workaround, I tried it via Base64 String, but in that case also socket Get Closed. For uploading using JAVAScript I have written

File transfer from Browser to locally connected iPhone

送分小仙女□ 提交于 2019-11-30 12:09:27
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 send File from Browser to Application, but It's not working. It's fine with Text Message but Not in case of Data. As a workaround, I tried it via Base64 String, but in that case also socket Get Closed. For uploading using JAVAScript I have written this code, here I tried by sending Base64 string in fragments of size 200 characters. function sendFile()

(转)直接拿来用!最火的iOS开源项目(二)

可紊 提交于 2019-11-28 22:28:47
“每一次的改变总意味着新的开始。”这句话用在iOS上可谓是再合适不过的了。GitHub上的iOS开源项目数不胜数,iOS每一次的改变,总会引发iOS开源项目的演变,从iOS 1.x到如今的iOS 7,有的项目已经被弃用,即使曾经的它很受开发者喜爱,有的项目则继续发扬光大,新项目更是层出不穷。在本文中,我们将继续为大家介绍20个在GitHub上非常受开发者欢迎的iOS开源项目,在这些项目中,有哪些是你经常使用的?又有哪些是你曾经使用过的? 21. SSToolkit SSToolkit可以说是iOS开发者最常使用的工具类之一,该开源项目提供了一个完整的iOS类库集合,用于解决iOS开发者在开发过程中常碰到的一些问题,比如追踪一款设备是否具有视网膜显示屏或是否能剪裁图片,包含SSCollectionView、SSGradientView、SSSwitch等诸多非常方便的类。 如果想要对SSToolkit作进一步了解,可以在iPad/iPhone上使用SSToolkit的Demo应用 SSCatalog 。获取更多信息,可直接登陆 S.S. TOOLKIT 。 22. XMPPFramework XMPPFramework是一个使用Objective-C编写的用于Mac/iOS开发的XMPP框架,它提供了一个RFC-3920(XMPP标准)核心实现,通过某些特定工具读写XML