Hi,
Did you try some of these values in Accept-Encoding ?
1) text/html;level=1
2) text/html
3) text/plain
You need to explicitly force the headers to use this values:
eg:
xmlhttp.setRequestHeader("Accept-Encoding", "text/html");*
You could try testing it using a http tester from your desktop.
Most of the time, any soap server should comply to that as gzip
encoding is a layer above text/html
If it still does not work, Im afraid that you need to create a phone
gap plugin to handle this. Its not very hard to do this.
There are also IFrame / Cross Scripting methods that would
automatically convert GZIP to its native format & Since PhoneGap is
essentially a WebView, its worth a try
Good Luck
Gunesh
On Jun 12, 1:46 am, farzades <
f.eskandan...@gmail.com> wrote:
> Thank you Gunesh ,
> It seems that the server is only present this type of encoding (gzip) .
>
> I removed the line of code you mentioned ,
> also checked with this code : *
>
> xmlhttp.setRequestHeader("Accept-Encoding", "compress;q=0, gzip;q=0");*