D dcoun Member Licensed User Longtime User Jun 27, 2018 #1 Hi, How can I make a compressed PUT http request to an apache server from B4A? Is it compressed by default? Also, does the OKhttp library provides in headers that it accepts compressed response? Thank you in advance
Hi, How can I make a compressed PUT http request to an apache server from B4A? Is it compressed by default? Also, does the OKhttp library provides in headers that it accepts compressed response? Thank you in advance
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2018 #2 dcoun said: Also, does the OKhttp library provides in headers that it accepts compressed response? Click to expand... Yes. And it handles responses decompression automatically. dcoun said: Is it compressed by default? Click to expand... No. After a lot of digging I can say that it is currently not possible to send gzip compressed requests unless you compress the data yourself (CompressedStreams from RAF) and decompress it on the server. The content length header will show the compressed length. Upvote 0
dcoun said: Also, does the OKhttp library provides in headers that it accepts compressed response? Click to expand... Yes. And it handles responses decompression automatically. dcoun said: Is it compressed by default? Click to expand... No. After a lot of digging I can say that it is currently not possible to send gzip compressed requests unless you compress the data yourself (CompressedStreams from RAF) and decompress it on the server. The content length header will show the compressed length.
D dcoun Member Licensed User Longtime User Jun 28, 2018 #3 Thank you very much Erel. There are many examples in the forum that co-work with php. Do you recommend one of them? Upvote 0
Thank you very much Erel. There are many examples in the forum that co-work with php. Do you recommend one of them?
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2018 #4 dcoun said: There are many examples in the forum that co-work with php. Do you recommend one of them? Click to expand... The thread question was answered. If you have any other question then please start a new thread. I cannot recommend any PHP example. Not really familiar with them. Upvote 0
dcoun said: There are many examples in the forum that co-work with php. Do you recommend one of them? Click to expand... The thread question was answered. If you have any other question then please start a new thread. I cannot recommend any PHP example. Not really familiar with them.