On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote:

On Mon, Oct 17, 2011 at 4:01 PM, Michael Van Canneyt
<mich...@freepascal.org> wrote:
? AFAIK xhttprequest is never synchronous...

It is synchronous if the third parameter of open is set to false:

http://www.w3.org/TR/XMLHttpRequest/#the-open-method

client . open(method, url, async, user, password)

The asynchronous flag
True when fetching is done asychronously. False when fetching is done
synchronously.

Did you properly encode the content ?

What exactly do I need to do? Pass a header saying it is UTF-8?

I am just sending simple text.

Ehm. I think that the problem is elsewhere. Content is only accepted with the 
POST method.

Michael.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to