pokeb / proxyinguiwebview Goto Github PK
View Code? Open in Web Editor NEWDemonstrates a UIWebView that proxies most requests via a local webserver. EXPERIMENTAL
License: Other
Demonstrates a UIWebView that proxies most requests via a local webserver. EXPERIMENTAL
License: Other
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[**NSCFDictionary setObject:forKey:]: mutating method sent to immutable object'
* First throw call stack:
(
0 CoreFoundation 0x0000000107f55c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000107363bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000107f55b9d +[NSException raise:format:] + 205
3 CoreFoundation 0x0000000107e8a783 -[__NSCFDictionary setObject:forKey:] + 99
4 SimpleBrowser 0x0000000105164c4a -[ProxyRequestResponseHandler sendResponseHeaders] + 986
5 SimpleBrowser 0x000000010516543f -[ProxyRequestResponseHandler request:didReceiveResponseHeaders:] + 191
6 SimpleBrowser 0x000000010514cca4 -[ASIHTTPRequest requestReceivedResponseHeaders:] + 228
7 Foundation 0x0000000106cd169a __NSThreadPerformPerform + 299
8 CoreFoundation 0x0000000107e89431 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
9 CoreFoundation 0x0000000107e7f2fd __CFRunLoopDoSources0 + 269
10 CoreFoundation 0x0000000107e7e934 __CFRunLoopRun + 868
11 CoreFoundation 0x0000000107e7e366 CFRunLoopRunSpecific + 470
12 GraphicsServices 0x00000001091e6a3e GSEventRunModal + 161
13 UIKit 0x00000001059ac8c0 UIApplicationMain + 1282
14 SimpleBrowser 0x0000000105139951 main + 97
15 libdyld.dylib 0x00000001079b5145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
In line 148 of ProxyRequestResponseHandler.m
CFHTTPMessageSetHeaderFieldValue(response, (CFStringRef)header, (CFStringRef)string);
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber length]: unrecognized selector sent to instance 0x822db00'
Example failing header:
X-ASIHTTPRequest-Response-Status-Code: 200
200 is parsed as a Number but not NSString
I load a lot of data through GET requests. However, all these request get cached (I only want some of them to get cached). I managed to work around the problem by creating post requests for the ones I didn't need to cache (luckly, we are also responsible for configuring the server-side), but it would be nice to be able to also use GET request without caching.
Maybe we could set another header for the request that need caching so asihttp will now which ones to cache and which ones not to cache
Any url I try to run give me this error :
501 - not implemented
No handler exists to handle http://127.0.0.1:8080/?url=http://www.google.com.
I managed to succesfully integrate offline browsing with ProxyingUIWebView. However there seems to be a problem when the webview loads the images. It does not load all of them. Some times some are loaded and some aren't, and some times others are loaded and others aren't.
When I navigate to the view containing the uiwebview, some images are loaded and some are not.
I go back and then navigate to the view containing the webview again. This time other images are loaded and some are still not loaded.
As a quick-fix, I would also consider not loading any images at all (and showing that little question mark when image is not available) than only loading some of them, if you could point me in the right direction.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.