I have written Android apps that take GZipped Json data from a HTTP response. Now I want to write some IPhone apps that do the same thing.
What class and approaches are needed to handle GZipped Json data using Swift?
I have written Android apps that take GZipped Json data from a HTTP response. Now I want to write some IPhone apps that do the same thing.
What class and approaches are needed to handle GZipped Json data using Swift?
On swift side:
On php side:
Decoding gzip - To unzip received (gzipped) post data (from your iOS App) use this:
Encoding to gzip - To send gzipped responses (to your iOS App) add below line somewhere at the beginning of your php file.