Commit Graph

181 Commits

Author SHA1 Message Date
Sefa Ilkimen 57c87db5a1 fix: broken network connection check on Android 2022-03-31 01:02:09 +02:00
Sefa Ilkimen 8ea1f3aed6 Merge pull request #427 from moshe5745/master
Add "No connection" error response with status code -6
2022-03-31 00:37:46 +02:00
Sefa Ilkimen e41684cc79 Merge pull request #459 from spoonconsulting/remove_dup_symbol_base
AFNetworking: Remove Duplicate Symbol Base
2022-03-31 00:11:40 +02:00
Sefa Ilkimen d393d3ca78 Merge pull request #429 from inited/master
Added support for intermediate certificates on iOS
2022-03-30 23:56:22 +02:00
Sefa Ilkimen 479c644b1d Merge pull request #444 from alexander-gruenewald/patch-1
[Browser] Fixing error propagation in setHeaders
2022-03-30 23:36:36 +02:00
Damian Tarnawsky 1f4ccd37b4 Resolves #441 disable url cache 2022-03-11 06:30:34 -08:00
Alexander Grünewald 9684c03685 Update cordova-http-plugin.js 2022-01-03 08:00:04 +01:00
shuto ee2d727c2b rename symbol 2021-12-16 23:09:55 +04:00
shuto 0ae3756a74 remove duplicate symbol of afnetworking 2021-12-16 18:49:57 +04:00
Alexander Grünewald 935e7d6ba3 [Browser] Fixing error propagation in setHeaders
If the headers contain certain special characters (€, “, ≠, ∑, †, Ω etc..), calling the setHeaders method will throw an "Value is not a valid ByteString" error which unfortunately is neither propagated to the caller of the http-plugin, nor is the xhr request cancelled in this case.

By wrapping the setHeader-call into a try/catch, and fail the xhr request in case of an error, we make sure the caller of the http-plugin will receive a proper error and the xhr request gets canceled.
2021-11-30 17:04:50 +01:00
Sefa Ilkimen b3b97306f4 fix: #438 requests not working correctly on browser platform 2021-10-15 14:49:34 +02:00
Jaroslav Pavlicek 6a9a22f81e Added support for intermediate certificates on iOS 2021-09-14 11:42:01 +02:00
moshe_ch 36d7e1813c Add "No connection" error response with status code -6 2021-08-26 01:04:22 +03:00
Sefa Ilkimen 1bafe6cdd9 fix: compile error in fix #404 2021-08-20 05:01:39 +02:00
Sefa Ilkimen 6f68aab736 Merge branch 'setTimeout' of https://github.com/YouYue123/cordova-plugin-advanced-http into YouYue123-setTimeout
# Conflicts:
#	README.md
#	src/android/com/silkimen/cordovahttp/CordovaHttpBase.java
#	src/android/com/silkimen/cordovahttp/CordovaHttpDownload.java
#	src/android/com/silkimen/cordovahttp/CordovaHttpOperation.java
#	src/ios/CordovaHttpPlugin.m
#	www/public-interface.js
2021-08-20 04:37:49 +02:00
Sefa Ilkimen 9ff32f1892 Merge pull request #422 from meiram-tr/master
Replacing AFNewtworking files and classes names to prevent conflicts with the real pod library
2021-08-20 03:38:13 +02:00
Sefa Ilkimen 16ac763a2a fix: #425 plugin crashes on Android SDK levels < 24 2021-08-20 03:29:21 +02:00
Meir Amar c2a0317b8f replacing AFNewtworking file and classes names to prevent conflicts with the real AFNetworking pod 2021-07-25 14:59:57 +03:00
Sefa Ilkimen bbd4cf01ab refactor: apply review feddback 2021-07-15 12:53:12 +02:00
Sefa Ilkimen bda4eedfb9 feat: #420 implement blacklist to disable unsafe SSL/TLS protocol versions on Android 2021-07-15 04:00:35 +02:00
Sefa Ilkimen badf6dcdc2 fix: #372 [Bug] Android: malformed empty multipart requests 2021-07-07 03:16:43 +02:00
Sefa Ilkimen d7688b485d fix: e2e test returns false positive due to test timing (request finished to early) 2021-03-24 06:54:59 +01:00
Sefa Ilkimen 1947906c4c Merge pull request #399 from avargaskun/master
Fix: Memory leak on iOS
2021-03-24 06:22:08 +01:00
YouYue123 4687bad20d 1. Add connectTimeout getter, setter
2. Add readTimeout getter, setter
3. Modify android and ios part to take from connect and readtimeout
4. update docs
2021-03-18 22:18:00 +08:00
Antonio Vargas Garcia 80b22d4202 Fix: Memory leak on iOS
- Requests are leaking instances of the AFHTTPSessionManager
- Over time this causes iOS to terminate the app
- Inspiration for the fix: https://stackoverflow.com/a/41345142
2021-02-10 22:16:41 -08:00
Sefa Ilkimen 25a0a9a7ae fix: #372 [Bug] Android: malformed empty multipart requests 2020-10-19 04:11:49 +02:00
Sefa Ilkimen e44def06a5 refactor: some minor cleanup and refactoring 2020-10-19 01:35:05 +02:00
russa 5b827d500d improve handling for race condition that request finished before adding it to pending requests map 2020-10-08 21:06:56 +02:00
russa 62c400c6db added support for aborting requests for ios platform 2020-09-25 18:56:15 +02:00
russa 64a7148444 FIX use same error message for abort as on android platform 2020-09-16 19:48:23 +02:00
russa bc90ae85fb added 'unsupported' feedback for abort() on ios platform 2020-09-16 18:36:55 +02:00
russa 389e860125 added support for abort() on browser platform 2020-09-16 18:35:01 +02:00
russa 2367d264c1 added support for abort() on android platform 2020-09-16 18:05:30 +02:00
Sefa Ilkimen 1639efe8d0 fix: #355 [Bug] [Browser] responseType "json" not working with valid JSON response 2020-08-18 02:16:03 +02:00
Sefa Ilkimen 57562a0dcf fix: #359 [Bug] [Android] memory leakage leads to app crashes 2020-08-17 03:02:05 +02:00
Sefa Ilkimen 1eb83478dc - deprecate: #297 drop support for Android < 5.1
- bump version
- remove deprecated functions
2020-06-25 07:47:51 +02:00
Sefa Ilkimen a259e7cf8d Merge branch 'clear-cookies-ios'
# Conflicts:
#	test/e2e-specs.js
2020-05-29 05:00:25 +02:00
Pascal Brogle 6797d2c3e0 apply timeout correctly on android
Also set connectTimeout
2020-03-05 15:46:25 +01:00
Sefa Ilkimen f8f4bdc9df fix: auth challenge block isn't handling server trust settings correctly 2020-03-05 03:23:28 +01:00
Sefa Ilkimen f5597dd176 WIP: implement setClientAuthMode()for iOS 2020-03-05 01:36:27 +01:00
Sefa Ilkimen 92be8f8e96 fix #248: clearCookies() does not work on iOS 2020-02-03 03:58:09 +01:00
antikalk b6f369b868 fix for issues #220 and #286
When responseType is set to json, the data should be returned as plain json string, not as a base64 encoded string.
2020-01-29 20:14:06 +01:00
Sefa Ilkimen 5a19c6ad06 Merge branch 'fix/#296-multipart-serializer-on-browser-platform' 2020-01-27 23:45:53 +01:00
Sefa Ilkimen 7193b636f1 feat #283: improve error message on timeout on browser platform 2020-01-27 04:44:13 +01:00
Sefa Ilkimen e18f9eee51 implement feat #155 for iOS 2020-01-27 02:22:29 +01:00
Sefa Ilkimen c7eb60e670 implement feat #155 for android 2020-01-27 02:10:32 +01:00
Sefa Ilkimen 78db1dc516 fix #296: [Bug] [browser] multipart requests are not serialized correctly 2020-01-27 01:29:04 +01:00
Sefa Ilkimen aded59e3d1 implement raw serializer support for browser target 2020-01-26 18:41:31 +01:00
Sefa Ilkimen 99c7f5d331 add default content type for raw serializer 2020-01-26 17:50:18 +01:00
Pavel Chuchuva 937010bd4e Add support for sending 'raw' requests on iOS too 2020-01-14 16:09:47 +11:00