xmlHTTPRequest --- Problem with POST method...

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
Posts: 1
Joined: September 28th, 2005, 6:44 am
Location: Bologna

Post Posted September 28th, 2005, 7:04 am

I have the problems with method POST of HTTPrequest. Serveur PHP does not recognize data as POST but as GET, then the file size is less of 512 bytes.

I write this :

req = new XMLHttpRequest();'POST', 'http://localhost/', false);
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

"myDocument" is a string like this:

myDocument = "Post_name=jimmy&Post_WritePerm=jimmy&Post_content= (and here the OuterHTML of document that i see in firefox..)

My server does not receive all the content. and if I visualize PHPInfo() I observe that the call is not a POST method but GET method.
Why?? Help

Posts: 4941
Joined: July 31st, 2003, 1:26 pm

Post Posted September 28th, 2005, 7:37 am

There is no <code>.outerHTML</code> property in Firefox.


Post Posted September 28th, 2005, 10:41 am

Yeh i know :-( But i did it! :-D

Return to Web Development / Standards Evangelism

Who is online

Users browsing this forum: No registered users and 1 guest