This is the output of the script on two browsers - so it seems that the emulator does not generate the same headers as firefox using this script.
Running the script on Firefox: HTTP line read=[GET /myBooks_cdc_REST2/ HTTP/1.1] HTTP line read=[Host: localhost:25722] HTTP line read=[User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 GTB7.1 ( .NET CLR 3.5.30729)] HTTP line read=[Accept: text/html,application/xhtml+xml,application/ xml;q=0.9,*/*;q=0.8] HTTP line read=[Accept-Language: en-us,en;q=0.5] HTTP line read=[Accept-Encoding: gzip,deflate] HTTP line read=[Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7] HTTP line read=[Keep-Alive: 115] HTTP line read=[Connection: keep-alive] Running the script on Android's emulator default browser: 10-04 20:29:58.739: INFO/System.out(1992): HTTP line read=[OPTIONS / myBooks_cdc_REST2/ HTTP/1.1] 10-04 20:29:58.749: INFO/System.out(1992): HTTP line read=[Host: localhost:25722] 10-04 20:29:58.801: INFO/System.out(1992): HTTP line read=[Accept- Encoding: gzip] 10-04 20:29:58.819: INFO/System.out(1992): HTTP line read=[Accept- Language: en-US] 10-04 20:29:58.849: INFO/System.out(1992): HTTP line read=[Access- Control-Request-Headers: X-DiscMsg] On Oct 2, 11:42 pm, kypriakos <[email protected]> wrote: > Hi all, > > does the default browser in Android support JS/AJAX and the > XMLHttpRequest > object? Running it in small test scripts using the browser in the > emulator does > not seem to (a) generate the correct set of HTTP headers (no Content- > Type or > Length, no GET statement and instead it shows an OPTIONS entry - > whatever > that is) and (b) ir repeats itself every couple of seconds as if it > thinks the server > has not responded yet and it needs to send the request again. > > Has anyone used this object in Android in the default browser? Any > suggestions? > > Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

