John Ruff
jcruff at gmail.com
Fri Mar 3 15:01:10 EST 2006
That was interesting b/c I just discovered that this works on Safari's browser, but not until I modified my code to xmlHttp.send ('') did it work on Firefox. Thanks very much. ___________________ John Ruff jcruff at gmail.com "No one can see past a choice they don't understand." --The Oracle On Mar 3, 2006, at 2:54 PM, Deron Meranda wrote: > On 3/3/06, John Ruff <jcruff at gmail.com> wrote: >> xmlHttp.open("POST", url, true); >> xmlHttp.setRequestHeader('Content-Type', 'application/x-www- >> form- >> urlencoded') >> xmlHttp.setRequestHeader('Content-length', '0'); >> xmlHttp.send(null); > > You're not sending any body! Even if there's nothing to > send, try sending '' rather than null. I'm guessing that the > XMLHttpRequest implementation is just not sending a > Content-Length if you send null. > > It's also very unusual to use application/x-www-form-urlencoded > with POST's, but I guess you could. Note thogh that in that case > the "URL" should be in the request body, not the actual > URL you're POSTing to. > -- > Deron Meranda
|