Sefa Ilkimen
a8f1d2b1c2
changed behaviour #29 : removed "validateDomainName" function and disabling it when "acceptAllCerts" is enabled
2017-10-19 16:24:54 +02:00
Ryan de Gruyter
190c44b30a
Add support for Content-Type application/hal+json
...
Currently when the server responds with a content type of application/hal+json, the response might be 200 but the AFNetwork will call the fail callback anyway because the content type is not acceptable.
2017-10-09 13:34:40 +02:00
Sefa Ilkimen
52b2efe71b
fixed PATCH method on android
2017-10-02 16:17:29 +02:00
Sefa Ilkimen
8b4c6de4b9
implemented PATCH method for iOS
2017-10-02 12:29:55 +02:00
Akshat Khatri - AK
09da3c9a97
patch method android
2017-10-01 17:26:20 +11:00
Akshat Khatri - AK
52ccfc6aca
Merge remote-tracking branch 'refs/remotes/silkimen/master' into feature-patch-method-android
2017-10-01 17:11:41 +11:00
Martin Kasa
a4a6440bcb
Add global redirection control
...
copied from https://github.com/wymsee/cordova-HTTP/pull/137
2017-09-29 14:36:00 +02:00
Akshat Khatri - AK
792515e1c6
patch method android
2017-09-29 21:02:44 +10:00
ben
325a2e6200
fix gzip decompression when request header accepts gzip compression
2017-09-12 14:17:52 +02:00
Jochen Becker
a20821378b
- if a request timed out the same error codes are returned for iOS and Android
...
- updated change log
2017-08-14 17:05:44 +02:00
Jochen Becker
d84a222dda
- added function "setRequestTimeout" to set the timeout for all further requests and to prevent to "wait forever" on Android in case the server is not responding
...
- updated change log
- incremented version for release
2017-08-10 10:03:38 +02:00
Jochen Becker
14eef1ca66
- convert response header keys to lowercase (iOS only)
...
- updated change log
- incremented version for release
2017-05-31 08:50:13 +02:00
Sefa Ilkimen
a1f678a886
fixed case-sensitive path for android source files
2016-12-07 16:20:17 +01:00
Sefa Ilkimen
d90cefcbaa
fixed handling of multiple cookies
2016-12-07 15:29:54 +01:00
Sefa Ilkimen
d5b2cdaf60
implemented PUT and DELETE methods for Android and iOS
2016-11-14 13:56:54 +01:00
Sefa Ilkimen
c8df1ebd8b
- implemented configurable serializer for Android
...
- cleaned up Android source structure
2016-11-11 19:24:49 +01:00
Sefa Ilkimen
4600fd0555
implemented configurable serializer for iOS
2016-11-11 01:33:29 +01:00
Andrew Stephan
9a65da55c9
only use custom factory for API Levels < 20
2016-07-20 11:55:49 -04:00
Andrew Stephan
4c26dd793e
fixed var name
2016-07-18 15:56:11 -04:00
Andrew Stephan
beae854526
updates to only allow tlsv1.1 and tlsv1.2
2016-07-18 15:42:30 -04:00
Andrew Stephan
60220a224b
updated AFNetworking and edited requests to send back the body for errors
2016-04-29 14:19:29 -04:00
Andrew Stephan
50d40e76eb
Merge pull request #8 from SpiderOak/disable-encoding-get-urls
...
Disables encoding get() URLs by default (android)
2016-04-28 18:58:26 -04:00
Andrew Stephan
bcf6f6ed90
updated http request and removed some android code that is now in js. Fixed upload file in iOS
2016-02-23 12:48:40 -05:00
Andrew Stephan
c35af633a4
fixed some issues with responseSerializers and moved some functions out of obj-c into javascript
2016-02-19 17:13:48 -05:00
Andrew Stephan
340e45a381
Fixed ios code to work with AFNetwork 3.0.x
2016-02-18 20:31:21 -05:00
Andrew Stephan
434d8dfd2b
updated afnetworking
2016-02-18 18:15:57 -05:00
Denis Babineau
dbe9d003b8
remove unused #import to non-existant file (now a private header in CordovaLib)
2016-02-16 10:36:06 -04:00
Denis Babineau
07e0195c91
add HEAD request support and return response headers for all request types both for success and failures.
2015-10-07 13:33:07 -03:00
Denis Babineau
141f996052
fix downloadFile method on ios; invalid native path and not using proper instance of CDVFile
2015-08-26 23:58:50 -03:00
Denis Babineau
cabb0db9de
acceptAllHosts can now be called on both platform.
2015-07-28 11:15:32 -03:00
Denis Babineau
43b04a94e2
add acceptAllHosts call to test self-signed certificate in dev environment (still performs pinning but skips host validation)
...
TODO: iOS
2015-07-28 11:04:09 -03:00
Eddy Verbruggen
1c1f716cf8
#7 android: acceptAllCerts doesn't call callbacks
2015-07-28 11:00:20 -03:00
Denis Babineau
20f39b32f1
update cordova file plugin dependency to new cordova-plugin-file name/version
2015-07-15 15:21:39 -03:00
EddyVerbruggen
0d67760abb
#1 Allow loading certificates from within the www folder
2014-10-14 15:49:01 +02:00
CSullivan102
be660f97d8
Updated AFNetworking to version 2.4.1 to fix crash when building in Xcode 6
2014-09-22 00:05:07 -04:00
Tommy-Carlos Williams
bd8207a390
Missing imports
2014-08-22 12:20:25 +10:00
Tommy-Carlos Williams
03dc55bdf9
Reports SSL Handshake errors when they occur
...
Instead of just reporting a 500 error with some generic text, I thought it might be useful to know when an actual SSL related error occurred. It the idea is to prevent MitM attacks, it might be important to warn users it might be happening.
Currently doesn't drill down the `getCause()` tree very far, just determines if it was an `SSLHandshakeException`.
2014-08-20 19:15:15 +10:00
Tommy-Carlos Williams
46517ae7f2
Disables encoding get() URLs by default
...
In our app this is leading to errors on URLs that are already properly encoded (they are being double-encoded... %20 -> %2520, etc)
Feel free to ignore or close this one if you need this functionality, but since `post()` URLs were *not* being encoded, I thought it might have just been a default that didn't affect you one way or the other.
2014-08-20 19:05:11 +10:00
Andrew Stephan
0b652756e5
imported UnknownHostException where necessary and updated version
2014-04-08 17:25:04 -04:00
Andrew Stephan
38854b3ca7
send back status 0 when the host cannot be resolved to match iOS. Also removed some logs
2014-04-08 13:08:58 -04:00
Andrew Stephan
d55f1bdc20
changed booleans to AtomicBooleans
2014-04-03 11:32:33 -04:00
Andrew Stephan
bfa5d47cf6
fixed bug with adding more than 1 cert
2014-04-02 15:31:38 -04:00
Andrew Stephan
aa2ce13d9c
Now working for both ios and android with same api. Updated AFNetworking
2014-03-31 17:21:14 -04:00
Andrew Stephan
d6e8852020
Now using http-request for android. Android is now fully working
2014-03-28 15:48:19 -04:00
Andrew Stephan
3f4b0b129c
renamed classes and files
2014-03-26 14:43:17 -04:00
Andrew Stephan
78dcc361ca
Started refactoring things so they make more sense name wise
2014-03-26 13:40:01 -04:00
Andrew Stephan
d4fce7751d
SSL pinning now finds any cer files in the assets folder. Now can allow invalid certs
2014-03-26 11:56:49 -04:00
Andrew Stephan
b65be932bd
got ssl pinning to work when hardcoded
2014-03-24 19:36:09 -04:00
Andrew Stephan
b81f8b3d41
Now able to post with some level of success
2014-03-21 19:10:14 -04:00
Andrew Stephan
7a772d94b0
beginnings of android
2014-03-21 18:09:01 -04:00